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). 
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.
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.
Erectile dysfunction (ED) is commonly called impotence. It’s a condition in which a man can’t achieve or maintain an erection during sexual performance. Symptoms may also include reduced sexual desire or libido. Your doctor is likely to diagnose you with ED if the condition lasts for more than a few weeks or months. ED affects as many as 30 million men in the United States.
Farag YM, Guallar E, Zhao D, Kalyani RR, Blaha MJ, Feldman DI, Martin SS, Lutsey PL, Billups KL, Michos ED. Vitamin D deficiency is independently associated with greater prevalence of erectile dysfunction: The National Health and Nutrition Examination Survey (NHANES) 2001-2004. Atherosclerosis. 2016 Sep;252:61-7. doi: 10.1016/j.atherosclerosis.2016.07.921. Epub 2016 Jul 29.
Centrally active compounds such as apomorphine have been used in men with ED whose cardiovascular comorbidity may prohibit PDE5i use, or in men who have concurrent apomorphine use for its anti-parkinsonian properties. Unfortunately, its side effect profile and poor effectiveness compared to other ED treatments have impaired its mainstream utilization (118). It is suspected that the side effects of apomorphine relate to its D2 receptor affinity. D4 receptor agonists, such as ABT-724 and azulenylmethylpiperazines, may not have the same associated side effects and show potent pro-erectile effects in animal models compared to apomorphine (32,119).
Move a muscle, but we're not talking about your biceps. A strong pelvic floor enhances rigidity during erections and helps keep blood from leaving the penis by pressing on a key vein. In a British trial, three months of twice-daily sets of Kegel exercises (which strengthen these muscles), combined with biofeedback and advice on lifestyle changes — quitting smoking, losing weight, limiting alcohol — worked far better than just advice on lifestyle changes.
PDE5 inhibitors, the primary second-line therapy, have been the mainstay of ED treatment since the release of sildenafil (Viagra) in 1998, with the subsequent development of many others, and still more in the development stage. These medications do improve erectile quality for the majority of men, and they work by enhancing blood flow in the corpora cavernosa. These medications are generally used on demand and need to be taken about an hour before sexual intimacy. Tadalafil (Cialis) is longer acting and does come in a daily preparation potentially eliminating the ‘on-demand’ need. The daily dosing of tadalafil, 2.5–5 mg\day, has also been approved by the FDA for treatment of symptoms of BPH.41 PDE5 inhibitors are contraindicated in men taking nitrates, but otherwise PDE5 inhibitors are very safe and effective. When PDE5 inhibitors are coadministered with nitrates, pronounced systemic vasodilation and severe hypotension are possible. Many patients with ED are elderly and have the same risk factors as patients with CAD, so these drug combinations are commonly considered or encountered in clinical practice.42
The device consists of an acrylic cylinder placed over the penis that uses a lubricant to achieve a good seal between the penile body and cylinder. An erection is then achieved by creating a vacuum inside the cylinder with a pump connected to the cylinder. Once an erection is achieved, a constriction band is applied to the base of the penis to maintain the erection. The cylinder can then be removed and the patient can engage in intercourse with the constriction band at the base of the penis maintaining the erection. The band can remain on for approximately 30 minutes and then must be removed. The erection produced by the device differs from a normal erection likely because of venous occlusion from the constriction band resulting in generalized swelling of the entire penis, with probable preservation of arterial inflow.
There are so many potential reasons a man might develop erectile dysfunction (ED), it's nearly impossible to generalize the best ways to treat it. What works for one man may not work for another simply because they are having problems for different reasons. That said, it may encouraging to hear that there are a variety of options that may be considered, from psychological counseling to lifestyle changes, medications to treatments and devices.
Counselling or sex therapy (58% of people find this works for them) –mind-related causes of erectile dysfunction can affect anyone. They are more likely if you experience erectile dysfunction at a younger age. Talking to a counsellor or therapist can help some people overcome erectile dysfunction related to these problems, possibly for good. They can also help you if your erectile dysfunction is causing you stress, as this can make matters worse.
In a 2005 study, three months of twice-daily sets of kegel exercises combined with biofeedback and advice on lifestyle changes, such as quitting smoking, losing weight, and limiting alcohol, worked far better than just giving the participants advice. “Wearing tight pants will affect impotence along with some other medical conditions like diabetes and heart disease,” which can also affect a man’s degree of impotence, Dr. Jennifer Burns, specializing in family practice with an emphasis on gastrointestinal health at the BienEtre Center, told Medical Daily.
Penile Injection Medication: This is just what it sounds like. Injected at home directly into the penis, the medication alprostadil produces erection by relaxing certain muscles, increasing blood flow into the penis and restricting outflow. Although some sources report an 80 percent success rate, the therapy has disadvantages, such as risks of infection, pain, and scarring—fibrosis—in the penis, and it may also cause priapism. A popular version of this medication is Upjohn Corporation’s Caverject. The MUSE System, by VIVUS, involves the same medicine (a pellet of alprostadil) applied with an eye-dropper-like applicator, directly into the urethra.