Certain feelings can interfere with normal sexual function, including feeling nervous about or self-conscious about sex, feeling stressed either at home or at work, or feeling troubled in your current sexual relationship. In these cases, treatment incorporating psychological counseling with you and your sexual partner may be successful. One episode of failure, regardless of cause, may propagate further psychological distress, leading to further erectile failure.
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). 
Having your current medication checked – if you are taking medication already, it could be that your erection problems are a side effect. Have a doctor check whether this is the cause of your problems and if it is, you might be able to switch medications and then find that your erectile dysfunction goes away completely – or at least improves. Medications that can cause erection problems include:
The penis is composed of three cylinders, two on the top and one on the underside of the penis. The top two cylinders are involved in the erectile process. The urethra, the tube that urine and semen pass through, is on the underside of the penis. The top two penile cylinders, the corpora cavernosa, are composed of tissue that is analogous to a sponge, containing spaces that can fill with blood and expand. These two cylinders are surrounding by a strong layer of tissue, like Saran wrap, the tunica albuginea. For an erection to occur, there must be properly functioning nerves, arteries, veins, and normal penile tissues.
However, studies have shown that fewer then 50% of men with ED and Diabetes respond to oral medicines. Also,fewer than 35% of men with ED after prostate cancer surgery respond to oral medicines. For these men the Internal Penile Implant is currently the best option. The Penile Implant is an approved medical option that has been used for over 30 years. During the course of a 45-minute outpatient procedure, the pump is inserted through a small one-inch opening in the scrotal sac. By squeezing the pump, fluid is pumped, resulting in a long lasting erection. Once inserted, there is no maintenance required for the pump and can remain in place for a lifetime.
Among the phenomena in the ageing man are a decrease in erectile function and testosterone levels. Add to these, increased risk for CVD, muscle wasting, decrease in bone density and libido, with all of these factors having an interplay with testosterone metabolism.33 Androgens play a key role in maintaining erectile function through four main mechanisms. Androgen deprivation has been shown to result in impairment of NO synthase release, altered PDE5 expression and activity, impaired cavernosal nerve function, and contribution to veno-occlusive disease in the penis.34 The role of testosterone replacement therapy (TRT) as a potential to improve erectile function in the man with ED remains an issue for patient and physicians who are comfortable treating androgen deficiency which include primary care physicians and specialists. Androgens are known to have a significant impact on the function of the smooth musculature within the corpus spongiosum.35
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.