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.
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:
Iatrogenic hypotension can occur in men in neurodegenerative disease using sildenafil (49). Hussain et al. placed men with PD and MSA on sildenafil and recorded blood pressure before and after. Half of the 12 MSA patients developed postural hypotension, while none of the twelve PD patients did. Since MSA can be difficult to distinguished diagnostically from PD, baseline blood pressure measurements prior to prescribing the medication and seeking medical assistance if symptomatic hypotension occurred was recommended for all patients with PD, and MSA. Of note, none of the men with MSA who developed hypotension discontinued sildenafil use due to its effectiveness at improving their erections.
Erectile dysfunation medications may not be suitable for you if you have been told not to have sex, not to engage in sexual activity/actions that widen your blood vessels, have low blood pressure (hypotension), have recently had a stroke, have unstable angina, have had a heart attack or have a history of non-arteritic anterior ischaemic optic neuropathy. Men with cardiovascular disease/anatomical issue with their penis/priapism/taking long-lasting alpha-blockers should use with caution and discuss with a doctor first. Do not mix with drugs/medications containing nitrates.
Surgery: If neither drugs nor the vacuum pump works, your doctor may suggest surgery. With surgery, the doctor can place a device in your penis that will cause enough hardness for intercourse. In a few cases, infections may develop after the operation, and the doctor may have to remove the device. Another operation that may help you is rebuilding the blood vessels in the penis to increase blood flow into the penis or decrease blood flow out of the penis. These procedures can help you to get and maintain an erection.
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. 
ICI Alprostadil may be used as a mixture with two other drugs to treat ED. This combination therapy called "bimix or trimix" is stronger than alprostadil alone and has become standard treatment for ED. Only the Alprostadil ingredient is FDA approved for ED. The amount of each drug used can be changed based on the severity of your ED, by an experienced health professional. You will be trained by your health professional on how to inject, how much to inject and how to safely raise the drug's dosage if necessary.