When sexually stimulated there is a release of a chemical, nitric oxide (NO) in the blood vessels of the corpus cavernosum. The NO stimulates the production of a compound called cGMP, which causes relaxation of the smooth muscle in the blood vessels supplying the corpus cavernosum. PDE 5 is an enzyme that breaks down cGMP. By inhibiting the breakdown of cGMP by PDE5, these medications allow cGMP to build up in the penis. cGMP causes muscles in the corpora cavernosa of the penis to relax. When the muscle is relaxed, more blood can flow into the penis and fill the spaces in the penis. As the penis fills with blood, the veins in the penis are compressed, and this results a hard erection. When the effect on PDE5 decreases, the cGMP levels go down and the muscle in the penis contracts, causing less blood to flow into the penis and allowing the veins to open up and drain blood out of the penis.
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. 
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.
Impotence, or erectile dysfunction, is the inability of a male to attain and keep an erection sufficiently firm to engage in or complete sexual intercourse. Although it is more common in older men, impotence can occur at any age. Impotence is not a normal consequence of aging. About 70% of erectile dysfunction is due to diseases such as diabetes and atherosclerosis, another 10% to 20% is due to psychological factors, and the remaining percentage is related to medications, lifestyle factors, and injury (Source: NIDDK).
Whenever I am prescribing a medication to a patient, I’m always asking myself, what can the patient do before requiring the medication? What changes do they have to make in order to reduce the amount of medication or preclude their even needing it? So a good candidate is somebody who has an understanding of a healthy lifestyle, about physical activity, about sleep, about nutrition, alcohol, smoking. So patients, individuals, have to do their share before they’re a candidate for anything. All right?
Certain types of blood pressure medications, antiulcer drugs, antihistamines, tranquilizers (especially before intercourse), antifungals (hetoconazole), antipsychotics, antianxiety drugs, and antidepressants, known as selective serotonin reuptake inhibitors (SSRIs, including Prozac and Paxil), can interfere with erectile function. Smoking, excessive alcohol consumption, and illicit drug use may also contribute. In rare cases, low levels of the male hormone testosterone may contribute to erectile failure. Finally, psychological factors, such as stress, guilt, or anxiety, may also play a role, even when the impotence is primarily due to organic causes.
Physical examination should include the assessment of male secondary sex characteristics, femoral and lower extremity pulses, and a focused neurologic examination including perianal sensation, anal sphincter tone, and bulbocavernosus reflex. More extensive neurologic tests, including dorsal nerve conduction latencies, evoked potential measurements, and corpora cavernosal electromyography lack normative (control) data and appear at this time to be of limited clinical value. Examination of the genitalia includes evaluation of testis size and consistency, palpation of the shaft of the penis to determine the presence of Peyronie's plaques, and a digital rectal examination of the prostate with assessment of anal sphincter tone.
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
Men are very susceptible to visual stimulation, particularly as children and teenagers. Seeing anything appealing (say, a person or image) activates pathways in the brain that tell nerves in your lower spinal cord to trigger a release of nitric oxide, which relaxes blood vessel walls and floods your penis with blood, making it hard. Nitric oxide is the key chemical here, as you need a mix released from your nerves AND from your blood vessels to get an erection. If the blood vessels, nerves, or both are damaged, it's difficult to get a hard erection. That's why your doctor may well be interested if you're struggling with erections, as it could be a sign of early heart disease or diabetes.
Damage to the autonomic pathways innervating the penis may eliminate "psychogenic" erection initiated by the central nervous system. Lesions of the somatic nervous pathways may impair reflexogenic erections and may interrupt tactile sensation needed to maintain psychogenic erections. Spinal cord lesions may produce varying degrees of erectile failure depending on the location and completeness of the lesions. Not only do traumatic lesions affect erectile ability, but disorders leading to peripheral neuropathy may impair neuronal innervation of the penis or of the sensory afferents. The endocrine system itself, particularly the production of androgens, appears to play a role in regulating sexual interest, and may also play a role in erectile function.
Research is mixed on the effectiveness of acupuncture as an erectile dysfunction cure, but one study published in November 2013 in the Journal of Alternative and Complementary Medicine found that acupuncture can be beneficial for men experiencing erectile dysfunction as a side effect of antidepressants, including selective serotonin reuptake inhibitors (SSRIs) and serotonin noradrenaline reuptake inhibitors (SNRIs).
The most important organic causes of impotence are cardiovascular disease and diabetes, neurological problems (for example, trauma from prostatectomy surgery), hormonal insufficiencies (hypogonadism) and drug side effects. Psychological impotence is where erection or penetration fails due to thoughts or feelings (psychological reasons) rather than physical impossibility; this is somewhat less frequent but can often be helped. In psychological impotence, there is a strong response to placebo treatment.
The general medical history is important in identifying specific risk factors that may account for or contribute to the patient's erectile dysfunction. These include vascular risk factors such as hypertension, diabetes, smoking, coronary artery disease, peripheral vascular disorders, pelvic trauma or surgery, and blood lipid abnormalities. Decreased sexual desire or history suggesting a hypogonadal state could indicate a primary endocrine disorder. Neurologic causes may include a history of diabetes mellitus or alcoholism with associated peripheral neuropathy. Neurologic disorders such as multiple sclerosis, spinal injury, or cerebrovascular accidents are often obvious or well defined prior to presentation. It is essential to obtain a detailed medication and illicit drug history since an estimated 25 percent of cases of erectile dysfunction may be attributable to medications for other conditions. Past medical history can reveal important causes of erectile dysfunction, including radical pelvic surgery, radiation therapy, Peyronie's disease, penile or pelvic trauma, prostatitis, priapism, or voiding dysfunction. Information regarding prior evaluation or treatment for "impotence" should be obtained. A detailed sexual history, including current sexual techniques, is important in the general history obtained. It is also important to determine if there have been previous psychiatric illnesses such as depression or neuroses.
So what can you do to help things along a little? Well, chances are it may sort itself out as you settle in to your relationship. But if it keeps happening and you see a future in the relationship, you need to talk about it, or it will soon become the elephant in the bedroom. Pick a time with no distractions and where nobody can overhear you. Tell them that you care about them and that you don’t need to rush things sexually. This can take the pressure off the need to perform.
Since no two men are alike, the best ED treatment plan will depend on what’s causing your problem. That’s why you need to put aside your embarrassment and make an appointment to visit with see a qualified doctor who specializes in helping guys get back to enjoying their time with their spouses or partners to the fullest. You’ll be relieved to talk to someone who understands and has solutions.
Psychotherapy, marital counseling, or sex therapy may be helpful in treating cases of impotence that have psychological or emotional causes. A range of other treatments exists for cases of impotence that arise from purely physiological causes. These treatments include vacuum devices, penile injections, and penile implants. These mechanical or physically invasive approaches have largely been superseded, however, by the drug sildenafil citrate (trade name Viagra), which is taken in pill form. This drug works by enhancing the effects of nitric oxide, a chemical that, upon sexual stimulation, is normally released to widen the blood vessels supplying the penis. The increased flow of blood through those vessels into certain tissues in the penis causes an erection. See also sexual dysfunction.
It is necessary to identify the causes of worry and try to remove these. They could include concern about personal relationships, work, family problems, health or even sexual “performance” with a new or old partner. It is often said that the brain is the biggest sex organ of them all – if it is too busy with other things, it will not be involved in arousal and the erection that follows.
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.