Parasympathetic pathways originate from the intermediolateral cell columns of the 2nd, 3rd and 4th sacral spinal cord segments. Preganglionic fibers pass through the pelvic plexus where they coalesce with sympathetic fibers from the superior hypogastric plexus. The cavernous nerves that innervate the penis arise from the portion of the pelvic plexus. The pelvic plexus also contains nerves that innervate the rectum, bladder and urinary sphincter and the nerve projections can be damaged during radical excision of the bladder, prostate and rectum, leading to iatrogenic ED (4).
Unfortunately, some patients may have an overly simplified understanding of the role of PDE5 inhibitors in ED management. Such patients may not expect or be willing to undergo a long evaluation and testing process to obtain a better understanding of their sexual problem, and they may be less likely to involve their partner in discussing their sexual relationship with the physician. They may expect to obtain medications through a phone call to their doctor or even over the Internet, with minimal or no physician contact at all.
Surgical intervention for a number of conditions may remove anatomical structures necessary to erection, damage nerves, or impair blood supply. Erectile dysfunction is a common complication of treatments for prostate cancer, including prostatectomy and destruction of the prostate by external beam radiation, although the prostate gland itself is not necessary to achieve an erection. As far as inguinal hernia surgery is concerned, in most cases, and in the absence of postoperative complications, the operative repair can lead to a recovery of the sexual life of people with preoperative sexual dysfunction, while, in most cases, it does not affect people with a preoperative normal sexual life.
If it is determined that ED is a problem, the patient evaluation should include a detailed sexual and medical history and a physical exam. In particular, it is important to evaluate the ED within the context of ejaculatory problems. There is a strong interplay between premature ejaculation (PE) and ED, with about a third of ED patients reporting PE. The relationship between the PE and ED is bidirectional and successful treatment of one often requires treatment of the other.14
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.
"Medications that create blood flow to the penis can't help when an erection is blocked by the fear or anxiety of the fight-or-flight response,” says Feloney. “This type of erectile dysfunction probably has a lot to do with evolution — men didn't need an erection when a dinosaur was chasing them." The best way to treat erectile dysfunction caused by performance anxiety, depression, a poor relationship, or stress may be with a combination of ED drug treatment and sex therapy, individual therapy, or couples therapy from sexual health professionals.
For many of the 30 million Americans affected by erectile dysfunction, Viagra, Levitra, and Cialis are the first line of ED treatment — and they’re successful for about 80 percent of men. These drugs, called phosphodiesterase-5 inhibitors, are approved by the U.S. Food and Drug Administration (FDA) and work by increasing blood flow to an erection. Common side effects include nasal congestion and headache. Note: If you take nitroglycerin pills for heart disease, you won’t be able to take ED pills, as they can cause a dangerous drop in blood pressure.
High cholesterol and triglyceride levels increase the risk of cardiovascular disease. Getting your cholesterol and triglyceride levels in an optimal range will help protect your heart and blood vessels. Cholesterol management may include lifestyle interventions (diet and exercise) as well as medications to get your total cholesterol, LDL, HDL, and triglycerides in an optimal range.
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.
Injections: Injections are a reliable way to restore testosterone levels, but this therapy requires periodic injections (usually every two weeks) to sustain an effective level. It also causes high hormone levels right after the injection and low hormone levels just before the next shot. This is thought to be slightly more risky than other methods that maintain a moderate hormone level throughout the treatment period.
Other hormone levels: Measurement of other hormones beside testosterone (luteinizing hormone [LH], prolactin level, and cortisol level) may provide clues to other underlying causes of testosterone deficiency and erectile problems, such as pituitary disease or adrenal gland abnormalities. Doctors may check thyroid levels in some individuals as both hypothyroidism (low thyroid function) and hyperthyroidism (overactive thyroid function) can contribute to erectile dysfunction.
2 inability of the adult male to achieve or sustain a penile erection or, less commonly, to ejaculate after achieving an erection. Several forms are recognized. Functional impotence has a psychological basis. Organic impotence includes vasculogenic, neurogenic, endocrinic, and anatomical factors. Anatomical impotence results from physically defective genitalia. Atonic impotence involves disturbed neuromuscular function. Poor health, old or advancing age, drugs, smoking, trauma, and fatigue can induce impotence. Also called erectile dysfunction, impotency. impotent, adj.
Common medical conditions such as diabetes, heart disease, and high blood pressure are associated with an increased risk of developing erectile dysfunction. Thus, optimal management of these diseases may help prevent the development or progression of erectile dysfunction. Lifestyle modifications to improve vascular function, including smoking cessation, losing weight if overweight, and exercising regularly, may be helpful.
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.
Associated morbidity may include various other male sexual dysfunctions, such as premature (early) ejaculation and male hypoactive sexual desire disorder. The NHSLS found that 28.5% of men aged 18-59 years reported premature ejaculation, and 15.8% lacked sexual interest during the past year. An additional 17% reported anxiety about sexual performance, and 8.1% had a lack of pleasure in sex. 
Psychosexual counselling, or sex therapy, is an appropriate recommendation especially for men who are experiencing discord with their partner especially if the conflict is related to the man’s ED. Counselling usually consists of 5–20 sessions with counsellor. It is our recommendation that referral doctors treating men with ED make a referral to a psychotherapist or sex therapist who is certified by AASECT (American Association of Sexuality Educators, Counselors and Therapists) of certified sexuality educator.43
Another study compared the response of surgically and medically castrated rabbits to vardenafil with that of control rabbits.  Castrated rabbits did not respond to vardenafil, whereas noncastrated rabbits did respond appropriately. This result suggests that a minimum amount of testosterone is necessary for PDE5 inhibitors to produce an erection.
Medications: Many common medicines produce erectile dysfunction as a side effect. Medicines that can cause erectile dysfunction include many used to treat high blood pressure, antihistamines, antidepressants, tranquilizers, and appetite suppressants. Examples of common medicines that can cause erectile dysfunction include propranolol (Inderal) or other beta-blockers, hydrochlorothiazide, digoxin (Lanoxin), amitriptyline (Elavil), famotidine (Pepcid), cimetidine (Tagamet), metoclopramide (Reglan), naproxen, indomethacin (Indocin), lithium (Eskalith, Lithobid), verapamil (Calan, Verelan, Isoptin), phenytoin (Dilantin), gemfibrozil (Lopid), amphetamine/dextroamphetamine (Adderall), and phentermine. Prostate cancer medications that lower testosterone levels such as leuprolide (Lupron) may affect erectile function. Some chemotherapies such as cyclophosphamide (Cytoxan) may affect erectile function.
Size matters, so get slim and stay slim. A trim waistline is one good defense — a man with a 42-inch waist is 50% more likely to have ED than one with a 32-inch waist. Losing weight can help fight erectile dysfunction, so getting to a healthy weight and staying there is another good strategy for avoiding or fixing ED. Obesity raises risks for vascular disease and diabetes, two major causes of ED. And excess fat interferes with several hormones that may be part of the problem as well.
Other treatment options such as penile self-injection therapy, external vacuum pumps and the medicated urethral system for erection are in rare occasions an effective long-term treatment. Only a very small percentage of men will continue with these treatments as evidenced by a very high drop out rate and a very low refill rate. These treatments require extensive planning which interferes with spontaneity. This may be the reason why the refill rate is so low and the drop out of treatment so high.
The severity of ED has been correlated with the extent of CVD. Banks et al reported that the risk of future CV events increased progressively according to ED severity.28 This was shown in both men with and without known CVD at baseline and after controlling for confounders. Solomon and colleagues found an inverse correlation between international index of erectile function (IIEF) scores and plaque burden seen on coronary angiography.29 In addition, Yaman et al demonstrated a significant correlation between ED severity on IIEF questionnaires and coronary artery calcification.30
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
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.
Since the advent of PDE5i, many other selective and non-selective peripheral acting compounds have been developed or are in development. Avanafil has shown promising results in treating ED in post-prostatectomy patients with suspected cavernous nerve injury (111). Other PDE5i marked in Asia such as udenafil, and mirodenafil also effective at treating ED may minimize side effects due to shorter half-lives (112-114). Soluable guanylate-cyclase inhibitors and potassium channel activators are compounds that have induced erections in animal models but remain experimental requiring further investigation (115-117).
Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.