Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.
Physical causes may include the narrowing of the blood vessels caused by hypertension (high blood pressure), nutritional deficiencies, certain prescription treatments and medications for enlarged prostate or prostate cancer, excess drinking, obesity, heavy smoking, kidney issues, thyroid problems, hormonal changes due to aging, injury, or surgery, diabetes, and high cholesterol levels.
Erectile dysfunction is the inability to develop or maintain an erection that is rigid enough to allow penetration of the vagina, and therefore functional sexual intercourse. Generally, the term erectile dysfunction is applied if this occurs frequently (75% of the time) over a significant period if time (several weeks to months). If this is the case, the term impotence may also be used.
Thinking about sex creates a burst of dopamine, which is a brain chemical that’s linked to excitement, motivation and pleasure. It also plays a crucial role in helping you to get an erection! In a man who is bored with or indifferent about sex, thinking about the act is unlikely to be accompanied by that dopamine burst, making it likely that the man will experience erectile dysfunction.
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. 
A CVA can occur anywhere through the brain, midbrain, brainstem and spinal cord leading to varying degrees of SD depending on location. A decline in libido, erection and ejaculation are frequent in men who have had a CVA, with a reported prevalence of ED that varies from 17% to 48% (28,29). Right hemispheric infarcts seem to affect erections more so than left-sided ones. The exact effects of CVA on sexual function are complex and multifactorial, as disability, psychological and emotional status can affect sexual function aside from the location of the CVA.
Due to the risk of hypotension, caution should be used in patients using alpha blockers for prostate hyperplasia and patients using other antihypertensive medications and alpha blockers, which should not be co-administered with PDE5 inhibitors. In patients who take 50 mg of sildenafil or more and use alpha blockers, sildenafil dosing should be avoided for at least 4 hours after the dose of the alpha blocker. In patients who take 25 mg of sildenafil, use of any alpha blockers is considered safe.
In many cases, diagnosing erectile dysfunction requires little more than a physical exam and a review of your symptoms. If your doctor suspects that an underlying health problem may be at play, however, he may request additional testing. Once you’ve determined the cause for your ED, you and your doctor can decide on a form of treatment – here are some of the options:
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).
Alteration of NO levels is the focus of several approaches to the treatment of ED. Inhibitors of phosphodiesterase, which primarily hydrolyze cGMP type 5, provided the basis for the development of the PDE5 inhibitors. Chen et al administered oral L-arginine and reported subjective improvement in 50 men with ED.  These supplements are readily available commercially. Reported adverse effects include nausea, diarrhea, headache, flushing, numbness, and hypotension.
Medical conditions, such as hypertension, diabetes mellitus, and cardiovascular disease (CVD), and psychological conditions, such as depression and anxiety, also contribute to sexual dysfunction in middle-aged or elderly men. CVD and hypertension cause a narrowing and hardening of the arteries, leading to reduced blood flow to the corporal bodies, which is essential for achieving an erection. Diabetes is a common aetiology of sexual dysfunction, because it can affect both the blood vessels and the nerves that supply the penis. Men with diabetes are four times more likely to experience ED, and on average, experience ED 15 years earlier than men without diabetes.7 Obesity is also correlated to the development of several types of dysfunction, including a decrease in sex drive and an increase in episodes of ED.8
Neurogenic erectile dysfunction (NED) is a traditional classification of erectile dysfunction (ED) encompassing disorders impairing erections via neurologic compromise or dysfunction. The disorders compromising erections may act centrally, peripherally or both. The prevalence of neurogenic ED has been suspected to be between 10% and 19% of all causes of ED (1,2). However, several classically defined neurogenic processes may affect several components of the normal pathway to achieve erection e.g., multiple sclerosis (MS), diabetes mellitus, iatrogenic surgical and spinal cord injury. Each disease state has its own unique characteristics that require acknowledgement to fully understand their effect on ED.
Erections are more complicated than you think. Your brain, nerves, heart, blood vessels, and a whole lot of hormones have to work together perfectly or nothing happens. It’s a lot to ask, and sometimes things break down. And while ED happens to most guys at some point in their lives, erectile dysfunction isn’t something you can just ignore and hope it goes away.
The main surgical treatment of ED involves insertion of a penile implant (also called penile prostheses). Because penile vascular surgery is not recommended for aging males who have failed oral PDE5 inhibitors, ICI or IU therapies, implants are the next step for these patients. Although placement of a penile implant is a surgery which carries risks, they have the highest rates of success and satisfaction among ED treatment options.