The penis contains three cylinders, the two corpora cavernosa, which are on the top of the penis (see figure 1 below). These two cylinders are involved in erections. The third cylinder contains the urethra, the tube that the urine and ejaculate passes through, runs along the underside of the penis. The corpus spongiosum surrounds the urethra. Spongy tissue that has muscles, fibrous tissues, veins, and arteries within it makes up the corpora cavernosa. The inside of the corpora cavernosa is like a sponge, with potential spaces that can fill with blood and distend (known as sinusoids). A layer of tissue that is like Saran Wrap, called the tunica albuginea, surrounds the corpora. Veins located just under the tunica albuginea drain blood out of the penis.
The development of an erection is a complex event involving integration of psychologic, neurologic, endocrine, vascular, and local anatomic systems. Positron emission tomography scanning studies have suggested that sexual arousal is activated in higher cortical centers that then stimulate the medial preoptic and paraventricular nuclei of the hypothalamus.5 These signals ultimately descend through a complex neural network involving the parasympathetic nervous system and eventually activate parasympathetic nerves in the sacral area (S2 to S4).
All devices that are currently approved by the FDA are considered safe for use in magnetic resonance imaging environments. However, 2 previously approved devices–the OmniPhase and the DuraPhase penile prostheses–are not considered safe in this environment. Other surgical procedures–including venous ligation to limit penile venous outflow and penile revascularization procedures–are rarely successful and are not recommended.19 These surgeries are only indicated when a patient demonstrates recent-onset ED and an occlusive lesion seen on angiogram or magnetic resonance angiography and should be performed only in centers of excellence for ED.
One of the first steps is to distinguish between physiological and psychological ED. Determining whether involuntary erections are present is important in eliminating the possibility of psychogenic causes for ED. Obtaining full erections occasionally, such as nocturnal penile tumescence when asleep (that is, when the mind and psychological issues, if any, are less present), tends to suggest that the physical structures are functionally working. Similarly, performance with manual stimulation, as well as any performance anxiety or acute situational ED, may indicate a psychogenic component to ED.
Recognized risk factors for ED include cardiovascular disease (CVD) (hypertension, atherosclerosis, and hyperlipidemia), diabetes, depression, alcohol use, smoking, pelvic/perineal surgery or trauma, neurologic disease, obesity, pelvic radiation, and Peyronie’s disease. One study suggested that the relationship between arterial disease and ED is very strong, with 49% (147 of 300) of patients with coronary artery disease noted on cardiac catheterization reporting significant erectile dysfunction.6 Endothelial dysfunction has been indicated as the pathophysiologic mechanism responsible for both CVD and ED.7 The Boston Area Community Health survey demonstrated a dose-response between smoking and incidence of erectile dysfunction.8 Animal studies have demonstrated both smooth-muscle disruption and decreased production of neural nitric oxide synthase in cigarette-exposed animals.9
Men who do not respond or tolerate oral medications are best treated with an internal penile pump (IPP) commonly known as an inflatable implant. The Internal Penile Pump is an inflatable, water-filled device. During the course of a 45-minute outpatient procedure, the pump is inserted through a one-inch opening in the scrotal sac. By squeezing the pump, (which is contained completely within the scrotum), for approximately a minute, fluid is pumped into the penis, resulting in a long lasting erection. To return the penis to its flaccid state, simply press and hold down the pump. Once inserted, there is no maintenance required for the pump, which can remain in place for a lifetime. Couples are once again able to have spontaneous sex. Normal sensation including orgasm and ejaculation are not affected.
The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
Moemen et al. compared the effectiveness and satisfaction associated with use of several ED therapies including sildenafil alone, intracavernosal injections (ICI) followed by sildenafil after ICI discontinuation and vacuum erections devices (VED) followed by sildenafil therapy after VED discontinuation (60). Seventy percent of men receiving vasoactive medications preferred sildenafil to ICI, even though rigidity was superior in the ICI group. All men using VEDs were dissatisfied with that form of therapy.
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.