Since sexual arousal is a complex process involving hormones, emotions, nerves, muscles, blood vessels and the brain, a malfunction in any of these can lead to ED. Stress, exhaustion and psychological issues can also contribute, and anxiety over maintaining an erection can actually make it harder to attain. In short, any condition that inhibits blood flow to the penis can lead to ED.
A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
This is one of many types of constricting devices placed at the base of the penis to diminish venous outflow and improve the quality and duration of the erection. This is particularly useful in men who have a venous leak and are only able to obtain partial erections that they are unable to maintain. These constricting devices may be used in conjunction with oral agents, injection therapy, and vacuum devices.
The first stem cell study for the treatment of ED was published in 2004. This study used embryonic stem cells to treat ED. At this time, there is a total of 36 published basic studies assessing stem cell therapy for ED, with two clinical trials. The mechanism of action of stem cells is to generate angiogenesis with subsequent increase in cavernosal smooth muscle cells within the corporal bodies.46
Prior to the introduction of PDE5i in 1998, intracavernosal vasoactive medications and penile implant surgery were the mainstays of treatment. Penile implant surgery involves placement of inflatable or malleable rods within the corpora cavernosa to provide rigidity for intercourse. Choice of which implant to place usually depends upon manual dexterity and function of the patient, patient anatomy, physician preference and surgical approach.
ED varies in men with seizure disorders, occurring in 3% to 58% of men with epilepsy (30). The cause of ED is likely multifactorial, with neurologic, endocrine, iatrogenic, psychiatric and psychosocial factors leading to varying degrees of ED (31). ED can occur in periods surrounding active seizures (ictal) or in the periods unrelated to seizure activity (post-ictal) as well (32).
For best results, men with ED take these pills about an hour or two before having sex. The drugs require normal nerve function to the penis. PDE5 inhibitors improve on normal erectile responses helping blood flow into the penis. Use these drugs as directed. About 7 out of 10 men do well and have better erections. Response rates are lower for Diabetics and cancer patients.