Like all diabetic complications, ED can occur even when you have followed your doctor’s advice and carefully managed your diabetes. Also like all diabetes complications, ED is less likely to occur with good blood sugar control. Poorly controlled diabetes and high cholesterol increase the chances of vascular complications, which may lead to ED or other circulatory problems. In addition, regular smoking and alcohol use can contribute to ED.
When you become aroused, your brain sends chemical messages to the blood vessels in the penis, causing them to dilate or open, allowing blood to flow into the penis. As the pressure builds, the blood becomes trapped in the corpora cavernosa, keeping the penis erect. If blood flow to the penis is insufficient or if it fails to stay inside the penis, it can lead to erectile dysfunction.
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
Erectile dysfunction can occur as a side effect of medication taken for another health condition. Common culprits are high blood pressure meds, antidepressants, some diuretics, beta-blockers, heart medication, cholesterol meds, antipsychotic drugs, hormone drugs, corticosteroids, chemotherapy, and medication for male pattern baldness, among others.
Testosterone replacement therapy may improve energy, mood, and bone density, increase muscle mass and weight, and heighten sexual interest in older men who may have deficient levels of testosterone. Testosterone supplementation is not recommended for men who have normal testosterone levels for their age group due to the risk of prostate enlargement and other side effects. Testosterone replacement therapy is available as a cream or gel, topical solution, skin patch, injectable form and pellet form placed under the skin.
Treatment. prostatitis or another acute infection affecting the genitalia can cause temporary impotence that clears up in response to antibiotics. The smooth muscle relaxant sildenafil (viagra) was introduced in 1998 as a treatment for organic impotence. Administration of testosterone may be indicated if low levels of this hormone are found in a blood sample. If impotence is organic and does not respond to other therapies, a penile prosthesis can be implanted; this is usually done surgically by a urologist. Other therapies include the use of vacuum tumescence devices and penile injection of pharmacologic agents that cause dilation.
Erectile dysfunction (ED) affects 50% of men older than 40 years,  exerting substantial effects on quality of life.  This common problem is complex and involves multiple pathways. Penile erections are produced by an integration of physiologic processes involving the central nervous, peripheral nervous, hormonal, and vascular systems. Any abnormality in these systems, whether from medication or disease, has a significant impact on the ability to develop and sustain an erection, ejaculate, and experience orgasm.
"The good news is, our study also found that a large proportion of men were naturally overcoming erectile dysfunction issues. The remission rate of those with erectile dysfunction was 29%, which is very high. This shows that many of these factors affecting men are modifiable, offering them an opportunity to do something about their condition," Professor Wittert says.
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.
It is essential to discuss erectile dysfunction with your doctor, so any serious underlying causes can be excluded and treatment options can be discussed. Many men are embarrassed discussing this issue with their doctor, or even their partner. Open communication with your doctor, and in your relationship, is important for effectively managing this common problem.
ED may occur with or without other sexual dysfunction, including decreased libido (decreased interest in sexual activity), orgasmic dysfunction (troubles achieving an orgasm/climax), and ejaculatory dysfunction (problems with the fluid released during sex, including lack of ejaculation [anejaculation], small volume ejaculate, ejaculation that occurs too quickly [premature ejaculation], ejaculate that goes backward into the bladder [retrograde ejaculation] and pain with ejaculation).
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.