Of particularly concern are antihypertensive medications for CVD (eg, digoxin, disopyramide [Norpace], gemfibrozil [Lopid]), anxiety, depression (eg, lithium, monoamine oxidase inhibitors, selective serotonin reuptake inhibitors, serotonin-norepinephrine reuptake inhibitors, tricyclic antidepressants), or psychosis (eg, chlorpromazine, haloperidol, pimozide [Orap], thioridazine, thiothixene). Antihypertensive drugs, such as diuretics (eg, spironolactone, thiazides) and beta blockers, may be associated with ED. Discontinuation or switching to alternative drugs, such as angiotensin-converting enzyme inhibitors or calcium channel blockers (eg, diltiazem, nifedipine, amlodipine), may reduce ED. The newer angiotensin II receptor antagonists may be less problematic with respect to ED, but long-term data is needed to evaluate this.
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.
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. 
Knowing about your history of ED will help your health provider learn if your problems are because of your desire for sex, erection function, ejaculation, or orgasm (climax). Some of these questions may seem private or even embarrassing. However, be assured that your doctor is a professional and your honest answers will help find the cause and best treatment for you.