However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
The role of the endothelium in ED has been noted for a number of years and the overlapping of ED and other conditions, especially coronary heart disease, CVD, affecting endothelial function/dysfunction, is clearly present. The endothelial cell is now known to affect vascular tone and impact the process of atherosclerosis, and impacting ED, CVD and peripheral vascular disease.16
Farag YM, Guallar E, Zhao D, Kalyani RR, Blaha MJ, Feldman DI, Martin SS, Lutsey PL, Billups KL, Michos ED. Vitamin D deficiency is independently associated with greater prevalence of erectile dysfunction: The National Health and Nutrition Examination Survey (NHANES) 2001-2004. Atherosclerosis. 2016 Sep;252:61-7. doi: 10.1016/j.atherosclerosis.2016.07.921. Epub 2016 Jul 29.
In a randomized double-blind, parallel, placebo-controlled trial, sildenafil plus testosterone was not superior to sildenafil plus placebo in improving erectile function in men with ED and low testosterone levels.  The objective of the study was to determine whether the addition of testosterone to sildenafil therapy improves erectile response in men with ED and low testosterone levels.
Choosing the treatment that is best for you comes down to preference and efficacy. Montague cites a study that surveyed three groups of men, all of whom were successfully using an ED treatment. One group was on oral medications, one was using injections and a third had surgically implanted pumps. The most satisfied users were those with the implanted prostheses.
Additionally, the physiologic processes involving erections begin at the genetic level. Certain genes become activated at critical times to produce proteins vital to sustaining this pathway. Some researchers have focused on identifying particular genes that place men at risk for ED. At present, these studies are limited to animal models, and little success has been reported to date.  Nevertheless, this research has given rise to many new treatment targets and a better understanding of the entire process.
Currently, there are no therapies that cure erectile dysfunction. However, a number of effective therapies are available that allow an individual to have an erection when desired. Depending on the cause of the erectile dysfunction, certain therapies may be more effective than others. Although there is limited data on lifestyle modification, intuitively, decreasing risk factors for erectile dysfunction may help prevent progression of disease.
Induction of erection occurs after stimulation of the cavernous and pelvic nerve plexus. Conversely, stimulation of the sympathetic trunk leads to detumescence. The reflex erectile response requires that the sacral reflex arc remain intact. Tactile and sensory signals are received by the somatic sensory pathways and integrate with parasympathetic nuclei within the sacral spinal cord (S2-4) leading to induction of erection via cholinergic signaling. These reflexogenic erections remain intact with upper motor neuron injuries. Psychogenic erections do not require that the sacral reflex arc remain intact. In a cat models, spinal cord removal below L4/L5 led to absence of a reflexogenic erection but stimulation of the medial preoptic area (MPOA) or placement near a female cat in heat led to erection (5,6). Psychogenic erections occur via induction of central pathways traveling from the brain through the sympathetic chain. Non-penile sensory pathways induced by sight, sound, touch and smell travel through the MPOA to the erection centers within the cord T11-L2, and S2-S4 to induce erections (7). When a sacral lower motor neuron injury is present in men, below T12 these types of erections are more likely to occur (8). Spinal cord lesions above T9 are not associated with psychogenic erections (9). Rigidity of erections is less with psychogenic erections because the thoracolumbar sympathetic outflow may contain a decreased concentration of neurons compared to the parasympathetic outflow from the sacral spinal cord.
As recently as two decades ago, doctors tended to blame erectile dysfunction on psychological problems or, with older men, on the normal aging process. Today, the pendulum of medical opinion has swung away from both notions. While arousal takes longer as a man ages, chronic erectile dysfunction warrants medical attention. Moreover, the difficulty is often not psychological in origin. Today, urologists believe that physical factors underlie the majority of cases of persistent erectile dysfunction in men over age 50.
Penile implants - are generally used if physical damage (like an accident) makes the anatomical parts needed for an erection not work. These are inserted by surgery and can provide a permanent treatment choice if others fail to work. The implants can be semi-rigid or inflatable. They can be pretty expensive and are not usually available on the NHS.
Many common medications for treating hypertension, depression, and high blood lipids (high cholesterol) can contribute to erectile dysfunction (see above). Treatment of hypertension is an example. There are many different types (classes) of medications for high blood pressure; these include beta-blockers, calcium channel blockers, diuretics (medications that increase urine volume), angiotensin converting enzyme inhibitors (ACE inhibitors), and angiotensin receptor blockers (ARBs). Patients may use these medications alone or in combination to control blood pressure. Some of these medications can cause troubles with erections. For example, Inderal (a beta-blocker) and hydrochlorothiazide (a diuretic) cause erectile dysfunction, while calcium channel blockers and ACE inhibitors do not seem to affect erectile function. On the other hand, other medications (such as angiotensin receptor blockers [ARB] including losartan [Cozaar] and valsartan [Diovan]) may actually help with erections. Therefore, if possible, you may benefit from changing your medications, but this requires approval by your prescribing health care provider.
Alteration of NO levels is the focus of several approaches to the treatment of ED. Inhibitors of phosphodiesterase, which primarily hydrolyze cGMP type 5, provided the basis for the development of the PDE5 inhibitors. Chen et al administered oral L-arginine and reported subjective improvement in 50 men with ED.  These supplements are readily available commercially. Reported adverse effects include nausea, diarrhea, headache, flushing, numbness, and hypotension.
Side effects include lightheadedness, fainting, priapism, urethral bleeding (intraurethral), dyspareunia in the partner (intraurethral), hematoma (intracavernosal) or penile curvature secondary to scar (intracavernosal). Efficacy of intraurethral alprostadil has been demonstrated to be around 50% ("able to have intercourse") in randomized controlled trials.31,32 For intracorporeal injection, typically alprostadil is tried alone, or compounded with papaverine (nonspecific phosphodiesterase inhibitor that increases intracellular cyclic adenosine monophosphate and cGMP) and/or phentolamine (competitive, non-selective alpha1- and alpha2-adrenoreceptor blocker). Pinsky et al33 reported an extensive review of the benefits and drawbacks of the combinations of these drugs.
Poor sleep patterns can be a contributing factor for erectile dysfunction, Mucher says. One review published in the journal Brain Research emphasized the intricate relationship between the level of sex hormones like testosterone, sexual function, and sleep, noting that testosterone levels increase with improved sleep, and lower levels are associated with sexual dysfunction. Hormone secretion is controlled by the body’s internal clock, and sleep patterns likely help the body determine when to release certain hormones.
Causes of impotence are many and include heart disease, high cholesterol, high blood pressure, obesity, metabolic syndrome, Parkinson's disease, Peyronie's disease, substance abuse, sleep disorders, BPH treatments, relationship problems, blood vessel diseases (such as peripheral vascular disease and others), systemic disease, hormonal imbalance, and medications (such as blood pressure and heart medications).
If PDE-5 inhibitors are not suitable or don’t work, other therapies include injections into the base of the penis, which cause flow of blood into the penis and a fairly immediate erection that lasts around an hour. The drugs injected are alprostadil (Caverject and Erectile dysfunctionex) and Invicorp (VIP and phentolamine). Alprostadil may also be inserted as a gel into the opening of the penis. This is not suitable if your partner is pregnant.
Lifestyle choices that impair blood circulation can contribute to ED. Smoking, excessive drinking, and drug abuse may damage the blood vessels and reduce blood flow to the penis. Smoking makes men with atherosclerosis particularly vulnerable to ED. Being overweight and getting too little exercise also contribute to ED. Studies indicate that men who exercise regularly have a lower risk of ED.