In a prospective study from the Prostate Cancer Prevention Trial database, Thompson et al reported that men presenting with ED had a significantly higher chance of developing a cardiovascular event over a 7-year follow-up period.  The hazard ratio was 1.45, which is in the range of risk associated with current smoking or a family history of MI.
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.
Robbins, C. L., Schick, V., Reece. M., Herbenick, D., Sanders, S. A. Dodge, B., & Fortenberry J. D., (2011, December 1). Prevalence, frequency, and associations of masturbation with partnered sexual behaviors among US adolescents. JAMA Pediatrics, 165(12), 1087–1093. Retrieved from https://jamanetwork.com/journals/jamapediatrics/fullarticle/1107656
So here’s something that’s really fascinating. Healthy eating is a way to reduce anxiety and stress. Now how, you may be asking, right? Well, think about it. We live in a world where there are so many variables and where we don’t have control over our lives. But now, with healthy eating, we have control over what goes into our body. And now having that control empowers us to be even healthier, to be more directive in what we do. And certainly, that begins then to reduce the anxiety and the stress. So all in one, you have a healthier body, but certainly a healthier mind.
Another tip is to make sure you communicate with your partner what you like during the process of sex. Many men are not communicative about what really turns them on. If you are not aroused by what is going on, then you might experience ED. Make sure you tell your partner what turns you on. Communicating about intimacy should also lead to feeling more connected with your partner aiding in relaxing when you are sexual together.
Vacuum pumps are effective in most men. Successful erections are achieved in up to 90% of men using the vacuum device, however only about 69% men continue to use the device for two years or longer. The most common cause of failure is improper use of or unfamiliarity with the device. Other drawbacks to the use of vacuum devices include the need to assemble the equipment and the difficulty in transporting it. Many men also lose interest in the device because of
Associated morbidity may include various other male sexual dysfunctions, such as premature (early) ejaculation and male hypoactive sexual desire disorder. The NHSLS found that 28.5% of men aged 18-59 years reported premature ejaculation, and 15.8% lacked sexual interest during the past year. An additional 17% reported anxiety about sexual performance, and 8.1% had a lack of pleasure in sex. 
These oral medications reversibly inhibit penile-specific PDE5 and enhance the nitric oxide–cGMP pathways of cavernous smooth muscle relaxation; that is, all prevent the breakdown of cGMP by PDE5. It is important to emphasize to patients that these drugs augment the body’s natural erectile mechanisms, therefore the neural and psychoemotional stimuli typically needed for arousal still need to be activated for the drugs to be efficacious.
Pay attention to your vascular health. High blood pressure, high blood sugar, high cholesterol, and high triglycerides can all damage arteries in the heart (causing heart attack), in the brain (causing stroke), and leading to the penis (causing ED). An expanding waistline also contributes. Check with your doctor to find out whether your vascular system — and thus your heart, brain, and penis — is in good shape or needs a tune-up through lifestyle changes and, if necessary, medications.
Erectile dysfunction is known to be associated with general health status, thus, lifestyle modification improves erectile function and decreases the rate of decline of function with aging. One year after discontinuation of smoking, patients were found to have a 25% improvement in erectile quality.16 In addition, multivariate analysis found obesity is associated with erectile dysfunction with an approximately 50% increase in ED in obese men as compared with normal weight men.17
Surgical intervention for a number of conditions may remove anatomical structures necessary to erection, damage nerves, or impair blood supply. Erectile dysfunction is a common complication of treatments for prostate cancer, including prostatectomy and destruction of the prostate by external beam radiation, although the prostate gland itself is not necessary to achieve an erection. As far as inguinal hernia surgery is concerned, in most cases, and in the absence of postoperative complications, the operative repair can lead to a recovery of the sexual life of people with preoperative sexual dysfunction, while, in most cases, it does not affect people with a preoperative normal sexual life.
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.
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
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).
Many factors can contribute to sexual dysfunction in older men, including physical and psychological conditions, comorbidities and the medications used to treat them. Aspects of an ageing man’s lifestyle and behaviour and androgen deficiency, most often decreasing testosterone levels, may affect sexual function as well. A study of men between the ages of 30 and 79 years showed that 24% had testosterone levels below 300 ng/dL and 5.6% had symptomatic androgen deficiency.2
Other factors leading to erectile dysfunction are diabetes mellitus, which is a well-known cause of neuropathy). ED is also related to generally poor physical health, poor dietary habits, obesity, and most specifically cardiovascular disease, such as coronary artery disease and peripheral vascular disease. Screening for cardiovascular risk factors, such as smoking, dyslipidemia, hypertension, and alcoholism is helpful.
Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.