Cosgrove et al reported a higher rate of sexual dysfunction in veterans with posttraumatic stress disorder (PTSD) than in veterans who did not develop this problem.  The domains on the International Index of Erectile Function (IIEF) questionnaire that demonstrated the most change included overall sexual satisfaction and erectile function. [43, 44] Men with PTSD should be evaluated and treated if they have sexual dysfunction.
The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
Exercise regularly. Make it a priority to get outside or go to the gym to walk, run, swim, bike, or do strength training at least 4 times a week. According to a study conducted by Harvard, walking 30 minutes a day caused a 41% drop in risk for ED. Getting regular exercise aids circulation, getting your blood pumping through your entire body. When it's time to sustain an erection, better circulation is key.
Recognized risk factors for ED include cardiovascular disease (CVD) (hypertension, atherosclerosis, and hyperlipidemia), diabetes, depression, alcohol use, smoking, pelvic/perineal surgery or trauma, neurologic disease, obesity, pelvic radiation, and Peyronie’s disease. One study suggested that the relationship between arterial disease and ED is very strong, with 49% (147 of 300) of patients with coronary artery disease noted on cardiac catheterization reporting significant erectile dysfunction.6 Endothelial dysfunction has been indicated as the pathophysiologic mechanism responsible for both CVD and ED.7 The Boston Area Community Health survey demonstrated a dose-response between smoking and incidence of erectile dysfunction.8 Animal studies have demonstrated both smooth-muscle disruption and decreased production of neural nitric oxide synthase in cigarette-exposed animals.9
Research has even found possible links to frequent ejaculation and a lower risk of prostate cancer. In one study of 32,000 men published in 2016 in the journal European Urology, for example, men who ejaculated at least 21 times per month while in their 20s were less likely to be diagnosed with prostate cancer than those who ejaculated four to seven times per month. And men who ejaculated more often in their 40s were 22 percent less likely to get a prostate cancer diagnosis.
According to whom? What's the source of your statistic? Because it sounds astonishingly high, for me to get erections and then lose them. If what you are talking about is men not being able to get erections, why don't you be honest and say that normally this is completely associated with age (say, over-60, and especially over 75), and that the Viagra-class of medications is the simplest and easiest response.
"Erectile dysfunction can be a very serious issue because it's a marker of underlying cardiovascular disease, and it often occurs before heart conditions become apparent. Therefore, men should consider improving their weight and overall nutrition, exercise more, drink less alcohol and have a better night's sleep, as well as address risk factors such as diabetes, high blood pressure and cholesterol.
MSA is a neurodegenerative disease of undetermined etiology, where ED is an early prominent sign occurring in 40% of men at the time of diagnosis (46,47). ED occurs in the majority of patients and the exact cause of it is unknown (48). Like PD, MSA likely affects the dopaminergic pathways within the brain essential for arousal (49). Orthostatic hypotension (OH) as a causal factor has been refuted by evidence that sildenafil can overcome reduced filling pressures, and the ED usually precedes the development of OH (46,49,50). Similar to other neurologic disorders that lead to ED, other disease related factors such as psychosocial stress, the burden of chronic illness, changed appearance, fatigue, decreased fine motor movement of fingers, immobility and diminished self-esteem due to loss of independence may contribute as well (51).
The pathogenesis of organic ED is related to dysfunction of the endothelium. Endothelial cells can become injured through a variety of mechanisms, most of which cause oxidative stress on the tissues. Many of these causes of oxidative stress are related to lifestyle issues which lead to hypertension, diabetes and dyslipidaemia (figure 1). Endothelial cell dysfunction results in reduction of endothelium-dependent vasorelaxation as well as increased adhesion of leukocytes to the endothelium. Endothelial cell injury then leads to a variety of sequelae, including ED, other types of vasoconstriction, atherosclerosis and thrombus formation.18
Factors that mediate contraction in the penis include noradrenaline, endothelin-1, neuropeptide Y, prostanoids, angiotensin II, and others not yet identified. Factors that mediate relaxation include acetylcholine, nitric oxide (NO), vasoactive intestinal polypeptide, pituitary adenylyl cyclase–activating peptide, calcitonin gene–related peptide, adrenomedullin, adenosine triphosphate, and adenosine prostanoids.
Erectile dysfunction in younger men, unless they're diabetic or have suffered some unusually cruel injury, is generally caused by stress, rather than any physical condition. High levels of cortisol or adrenaline (both byproducts of stress) in the body stymie the supply of oxygen to the organs, thereby decreasing blood flow to the penis. And the penis without blood has as much chance of getting up as a balloon without air. Which is why I found it easier to have sex with people I wasn't emotionally invested in: Once the fear of rejection is removed, sex is no big deal.
The obvious risks are the same that accompany any surgery: infection, pain, bleeding, and scarring. If for some reason the prosthesis or parts become damaged or dislocated, surgical removal may be necessary. With a general success rate of about 90 percent, any of the devices will restore erections, but they will not affect sexual desire, ejaculation, or orgasm.
"Sexual relations are not only an important part of people's wellbeing. From a clinical point of view, the inability of some men to perform sexually can also be linked to a range of other health problems, many of which can be debilitating or potentially fatal," says Professor Gary Wittert, Head of the Discipline of Medicine at the University of Adelaide and Director of the University's Freemasons Foundation Centre for Men's Health.
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
Melanocortin receptor agonists were found to induce erections serendipitously. A study investigating the dermatologic use of Melanotan-II (MT-II) was found to generate erections unexpectedly leading to the development of MTII derivatives for ED treatment (120). MT-II was initially used to induce pigment changes in the skin for artificial tanning but has been suspected to induce melanoma, however (121).
The PDE5 inhibitors sildenafil (Viagra), vardenafil (Levitra) and tadalafil (Cialis) are prescription drugs which are taken orally.:20–21 Additionally, a cream combining alprostadil with the permeation enhancer DDAIP has been approved in Canada as a first line treatment for erectile dysfunction. Penile injections, on the other hand, can involve one of the following medications: papaverine, phentolamine, and prostaglandin E1, also known as alprostadil.:25