Somatomotor penile innervation originates in Onuf’s nucleus in the S2-4 spinal segments. These nerves travel to the ischiocavernosus and bulbocavernosus muscles when activated lead to contraction necessary for the rigid-erection phase. Several animal studies show that stimulation of the somatomotor pathways may also be under sympathetic control, and adrenergic stimulation may lead to contraction of these muscles during ejaculation (13,14). Somatomotor spinal reflexes may also be initiated by genital stimulation. For instance, the well-known bulbocavernosus reflex is evidence this reflex exists; however the clinical significance of its absence in the neurological assessment of ED has not been substantiated (15).
There are risks to prosthetic surgery and patients are counselled before the procedure. If there is a post-operative infection, the implant will likely be removed. The devices are reliable, but in the case of mechanical malfunction, the device or a part of the device will need to be replaced surgically. If a penile prosthesis is removed, other non-surgical treatments may no longer work.
Arterial vascular diseases account for nearly half of all cases of ED in men older than 50 years of age. Arterial vascular disease includes atherosclerosis (fatty deposits on the walls of arteries, also called hardening of the arteries), which may affect the heart (history of heart attacks, angina, coronary artery disease, myocardial infarct) or blood vessels in the legs, peripheral vascular disease (problems with blood circulation to the legs), as well as other areas of the body including blood vessels supplying blood to the penis and high blood pressure. Prolonged tobacco use (smoking) is considered an important risk factor for ED because it is associated with poor circulation and reduced blood flow in the penis. This is related to microvascular damage (stiffening of the artery as well as smaller caliber vessel size secondary to endovascular atherosclerotic plaques).
A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
Effective treatment for erectile dysfunction is available, and for most men will allow the return to a fulfilling sex life. The side effects of the treatment for erectile dysfunction vary depending on the treatment that is used. Some may interrupt the spontaneity of sexual activity. For example, PDE-5 inhibitors typically need to be taken one hour before sex. Side effects may include headaches, indigestion, vasodilation, diarrhoea and blue tinge to vision. Other treatments such as penile injections may cause pain at the injection site, or an erection that will not go down. Treatment options need to be carefully discussed with your doctor to determine which one is best suited to you.
Normal erectile function depends on the release of NO and endothelial-dependent vasodilation of the penile arteries. The ‘artery size’ hypothesis, first described by Dr Montorsi, offers an explanation why men are more likely to develop ED before a myocardial infacrtion. It is believed that atherosclerosis affects all vascular beds equally but smaller arteries are more likely to become occluded than larger arteries.31 32 The penile arteries are 1–2 mm while the coronary arteries are 3–4 mm. Thus, the same degree of endothelial dysfunction and atherosclerosis is more likely to occlude blood flow in the penile arteries compared with the coronary arteries. The penile arteries therefore serve as a sensitive indicator for subsequent CVD. This theory is supported by the fact that ED occurs approximately 3 years prior to cardiac symptoms in virtually all patients with chronic coronary syndrome whereas patients with acute coronary syndrome have a much lower prevalence of sexual dysfunction.32
Male erectile problems often produce a significant emotional reaction based on the impact of erectile dysfunction on confidence, self-esteem, and morale in most men. This is described as a pattern of anxiety and stress that can further interfere with normal sexual function. Such "performance anxiety" needs to be recognized and addressed by a doctor.
Diabetes is an example of an endocrine disease that can cause a person to experience impotence. Diabetes affects the body’s ability to utilize the hormone insulin. One of the side effects associated with chronic diabetes is nerve damage. This affects penis sensations. Other complications associated with diabetes are impaired blood flow and hormone levels. Both of these factors can contribute to impotence.
Many common medications for treating hypertension, depression, and high blood lipids (high cholesterol) can contribute to erectile dysfunction (see above). Treatment of hypertension is an example. There are many different types (classes) of medications for high blood pressure; these include beta-blockers, calcium channel blockers, diuretics (medications that increase urine volume), angiotensin converting enzyme inhibitors (ACE inhibitors), and angiotensin receptor blockers (ARBs). Patients may use these medications alone or in combination to control blood pressure. Some of these medications can cause troubles with erections. For example, Inderal (a beta-blocker) and hydrochlorothiazide (a diuretic) cause erectile dysfunction, while calcium channel blockers and ACE inhibitors do not seem to affect erectile function. On the other hand, other medications (such as angiotensin receptor blockers [ARB] including losartan [Cozaar] and valsartan [Diovan]) may actually help with erections. Therefore, if possible, you may benefit from changing your medications, but this requires approval by your prescribing health care provider.
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.