First, medical conditions need to be ruled out. Let’s assume that you have never been diagnosed with a medical condition that is physically linked to erectile dysfunction, such as type 2 diabetes, obesity or heart disease. In this case you’re probably looking at a case of psychological impotence, given that there are no physical explanations for your difficulties.
Exercise regularly. Make it a priority to get outside or go to the gym to walk, run, swim, bike, or do strength training at least 4 times a week. According to a study conducted by Harvard, walking 30 minutes a day caused a 41% drop in risk for ED. Getting regular exercise aids circulation, getting your blood pumping through your entire body. When it's time to sustain an erection, better circulation is key.
These oral medications reversibly inhibit penile-specific PDE5 and enhance the nitric oxide–cGMP pathways of cavernous smooth muscle relaxation; that is, all prevent the breakdown of cGMP by PDE5. It is important to emphasize to patients that these drugs augment the body’s natural erectile mechanisms, therefore the neural and psychoemotional stimuli typically needed for arousal still need to be activated for the drugs to be efficacious.
The role of the endothelium in erectile function became clearer with the observation that the phosphodiesterase type 5 (PDE5) inhibitor, sildenafil, enhanced erectile function. Erection occurs with the release of nitric oxide (NO) from the vascular endothelial cells.17 The reduction in endothelial cell production of NO results in the negative impact on the smooth muscles in the corporal bodies and results in less relaxation of the smooth muscle cells with decrease in blood supply and resulting ED. A similar phenomenon is well known to impact the coronary arterial system resulting in CVD.
If you can't take one of these oral medications, your physician may have you try Caverject (alprostadil for injection), a hormone that you inject into your penis using a fine needle, or Muse (alprostadil urogenital), a tiny suppository that you insert into the tip of the penis. Both of these will bring on an erection within five to 15 minutes without sexual stimulation.
"Sexual relations are not only an important part of people's wellbeing. From a clinical point of view, the inability of some men to perform sexually can also be linked to a range of other health problems, many of which can be debilitating or potentially fatal," says Professor Gary Wittert, Head of the Discipline of Medicine at the University of Adelaide and Director of the University's Freemasons Foundation Centre for Men's Health.
Diabetes is a well-recognized risk factor for ED. A systematic review and meta-analysis found that the prevalence of ED was 37.5% in type 1 diabetes, 66.3% in type 2 diabetes, and 52.5% in diabetes overall—a rate approximately 3.5 times higher than that in controls.  The etiology of ED in diabetic men probably involves both vascular and neurogenic mechanisms. Evidence indicates that establishing good glycemic control can minimize this risk.
There are two kinds of surgery for ED: one involves implantation of a penile prosthesis; the other attempts vascular reconstruction. Expert opinion about surgical implants has changed during recent years; today, surgery is no longer so widely recommended. There are many less-invasive and less-expensive options, and surgery should be considered only as a last resort.
This isn’t all that surprising. When you feel blue and low on energy, it can be extremely difficult to perform at your sexual peak. Furthermore, depression is linked to changes in your brain chemistry and nervous system. Some of these areas also affect your sex drive and ability to have an erection. This means that depression can change the way your brain works, making ED more likely.
Before pursuing ED treatments, though, bear in mind that improving heart health by losing weight, eating a healthier diet, exercising more and quitting smoking typically enhances erectile performance as well as one’s overall health. In addition, sex therapy counseling sessions can often ease or eradicate ED symptoms, if the underlying cause is psychological in nature, says Drogo Montague, M.D., director of the Center for Genitourinary Reconstruction at the Cleveland Clinic.
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.
The nerves and endothelium of sinusoids and vessels in the penis produce and release transmitters and modulators that control the contractile state of corporal smooth muscles. Although the membrane receptors play an important role, downstream signaling pathways are also important. The RhoA–Rho kinase pathway is involved in the regulation of cavernosal smooth muscle contraction. 
Cavallini, G., Modenini, F., Vitali, G., & Koverech, A. (2005, November). Acetyl-L-carnitine plus propionyl-L-carnitine improve efficacy of sildenafil in treatment of erectile dysfunction after bilateral nerve-sparing radical retropubic prostatectomy. Urology, 66(5), 1080-5. Retrieved from http://www.sciencedirect.com/science/article/pii/S0090429505006515
early 15c., "physical weakness," also "poverty," from Middle French impotence "weakness," from Latin impotentia "lack of control or power," from impotentem (nominative impotens); see impotent. In reference to a want of (male) sexual potency, from c.1500. The figurative senses of the word in Latin were "violence, fury, unbridled passion." Related: Impotency.
Talk with your doctor before trying supplements for ED. They can contain 10 or more ingredients and may complicate other health conditions. Asian ginseng and ginkgo biloba (seen here) are popular, but there isn't a lot of good research on their effectiveness. Some men find that taking a DHEA supplement improves their ability to have an erection. Unfortunately, the long-term safety of DHEA supplements is unknown. Most doctors do not recommend using it.
The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
Melanocortin receptor agonists were found to induce erections serendipitously. A study investigating the dermatologic use of Melanotan-II (MT-II) was found to generate erections unexpectedly leading to the development of MTII derivatives for ED treatment (120). MT-II was initially used to induce pigment changes in the skin for artificial tanning but has been suspected to induce melanoma, however (121).
Clinical studies have suggested that these devices are effective and acceptable to a large number of patients with ED of varying causes, including psychogenic erectile failure. These devices are safe and can restore a man’s ability to achieve penetrative intercourse, with one study suggesting nearly 95% success with adequate instruction and support.30 However, satisfaction with this treatment modality typically wanes with time, as patients report dissatisfaction with how cumbersome or unnatural the devices are to use, hinging or buckling of the erection with thrusting, and dissatisfaction with the fact that the erection is ischemic and therefore cold, which can be off-putting to the partner.
Ultimately, PDE5i have had a significant impact on the treatment of ED in men with SCI. The ease of use and tolerability of the medication has also led to improved satisfaction and quality of life that had been previously affected by SD. Head to head trials evaluating specific PDE5i within the SCI population are required to further elucidate drug preference. PDE5i should be considered first line therapy, however men with high thoracic and cervical lesions should be warned about an increased chance of dizziness with sildenafil and possibly other PDE5i use.
These are not currently approved by the FDA for ED management, but they may be offered through research studies (clinical trials). Patients who are interested should discuss the risks and benefits (informed consent) of each, as well as costs before starting any clinical trials. Most therapies not approved by the FDA are not covered by government or private insurance benefits.