Psychological factors — Psychological issues such as depression, anxiety, guilt or fear can sometimes cause sexual problems. At one time, these factors were thought to be the major cause of impotence. Doctors now know that physical factors cause impotence in most men with the problem. However, embarrassment or "performance anxiety" can make a physical problem worse.
In men of all ages, erectile failure may diminish willingness to initiate sexual relationships because of fear of inadequate sexual performance or rejection. Because males, especially older males, are particularly sensitive to the social support of intimate relationships, withdrawal from these relationships because of such fears may have a negative effect on their overall health.
Sildenafil is available as oral tablets at doses of 25 mg, 50 mg, and 100 mg. Patients should take sildenafil approximately one hour before sexual activity. In some men, the onset of action of the drug may be as early as 11-20 minutes. It's best for men to take sildenafil on an empty stomach for best results since absorption and effectiveness of sildenafil can be diminished if it is taken shortly after a meal, particularly a meal that is high in fat. Sildenafil and the other PDE5 inhibitors don't cause an immediate erection. Sexual stimulation is necessary for these medications to work.
However, in contrast, a recent systematic review of published studies, the authors concluded that overall, the addition of testosterone to PDE-5 inhibitors might benefit patients with ED associated with testosterone levels of less than 300 ng/dL (10.4 nmol/L) who failed monotherapy.  A limitation of existing studies are their heterogeneous nature and methodological drawbacks.
The surgery for placement of a penile prosthesis is typically an outpatient surgery. Doctors often perform a penile prosthesis through a single incision, and all of the components are hidden under the skin. Health care professionals often give patients antibiotics at the time of surgery and often after the surgery to decrease the risk of developing an infection. Depending on your health history, a health care provider may leave a catheter in your penis to drain your bladder overnight.
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
Another approach is vacuum therapy. The man inserts his penis into a clear plastic cylinder and uses a pump to force air out of the cylinder. This forms a partial vacuum around the penis, which helps to draw blood into the corpora cavernosa. The man then places a special ring over the base of the penis to trap the blood inside it. The only side effect with this type of treatment is occasional bruising if the vacuum is left on too long.
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.
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. 
I'm a college guy who has only had sex a handful of times, and I've noticed a bit of a reccurring issue. During any foreplay and all that good stuff, I have a nice big erection, but as soon as I'm about to stick it in, the erection disappears like a frightened turtle. Then once the 30 seconds of embarrassing made-up explanations concludes, the erection is back.
Although not proven, it is likely that erectile dysfunction can be prevented by good general health, paying particular attention to body weight, exercise, and cigarette smoking. For example, heart disease and diabetes are problems that can cause erectile dysfunction, and both are preventable through lifestyle changes such as sensible eating and regular exercise. Furthermore, early diagnosis and treatment of associated conditions like diabetes, hypertension and high cholesterol may prevent or delay erectile dysfunction, or stop the erectile dysfunction from getting more serious.
PDE 5 inhibitors are broken down primarily by enzyme, cytochrome P450enzyme CYP3A4. Medications that decrease or increase the activity of CYP3A4 may affect levels and effectiveness of PDE 5 inhibitors. Such drugs include medications for the treatment of HIV (protease inhibitors) and the antifungal medications ketoconazole and itraconazole. Thus caution is recommended.
Think of erectile dysfunction as your body’s “check engine light.” The blood vessels in the penis are smaller than other parts of the body, so underlying conditions like blocked arteries, heart disease, or high blood pressure usually show up as ED before something more serious like a heart attack or stroke. ED is your body’s way of saying, “Something is wrong.” And the list of things that cause erectile dysfunction can include:
Watts and coworkers, in their review article, make several points about this ED/CAD nexus. Endothelial dysfunction is present in both CVD and ED, and is linked through the NO mechanism. The authors note that PDE5 inhibitors improve endothelial function and have a salutary effect on both CVD and ED. Both ED and cardiac disease respond to modifications in lifestyle as well as pharmacologic manipulation. These authors also report that the presence of ED gives the clinician an opportunity to assess CVD and prevention as well.20
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. 
Vascular damage may result from radiation therapy to the pelvis and prostate in the treatment of prostate cancer.  Both the blood vessels and the nerves to the penis may be affected. Radiation damage to the crura of the penis, which are highly susceptible to radiation damage, can induce ED. Data indicate that 50% of men undergoing radiation therapy lose erectile function within 5 years after completing therapy; fortunately, some respond to one of the PDE5 inhibitors.
THIS TOOL DOES NOT PROVIDE MEDICAL ADVICE. It is intended for general informational purposes only and does not address individual circumstances. It is not a substitute for professional medical advice, diagnosis or treatment and should not be relied on to make decisions about your health. Never ignore professional medical advice in seeking treatment because of something you have read on the WebMD Site. If you think you may have a medical emergency, immediately call your doctor or dial 911.