The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
The observation that TRT enhances the efficacy of PDE5 inhibitors in hypogonadal men taking these therapies with suboptimal response to the PDE5 inhibitors alone has been reported.33 In addition, investigators have demonstrated that TRT in hypogonadal men can improve erectile function even without the benefit of PDE5 inhibitors.33 In addition, guidelines for managing ED in hypogonadal men by the European Association of Urology recommend controlling the man to a eugonadal state prior to initiation of PDE5 inhibitor therapy.36 Testosterone measurement consists of a serum specimen which should be ideally obtained in the morning because of the normal diurnal variation of testosterone which is at its peak in the morning. Since TRT is relatively safe, and men can potentially see an improvement in erectile function, it seems prudent to consider this issue when presented with a patient suffering from ED.
Experiencing ED can also be a reason to try not penetrative sex. Try planning a sex session with your partner hat isn't focused on your erection at all. Things like kissing, licking, sucking, foreplay and teasing all are super stimulating and don't focus on penetration. Feel free to bring each other to orgasm using these ideas and see if you are able to relax and enjoy the experience. Many men feel like failures when their erections become unreliable. Having a few successful sexual sessions that lead to orgasm without penetration can put the fun back into having sex. Many couples find success using this technique and begin to reengage sexually instead of avoiding being sexual for fear of failure.
The next new treatments for erectile dysfunction will probably be improvements in some ED drugs already being used. "A dissolvable form of Levitra that you put under your tongue is coming that may work more quickly than the pills we have now," says Feloney. A new form of alprostadil may make it possible for you to rub it directly on the penis instead of inserting or injecting it. And newer phosphodiesterase inhibitors that last even longer and cause fewer side effects are being developed. Stay tuned!
Treatment involves addressing the underlying causes, lifestyle modifications, and addressing psychosocial issues. In many cases, a trial of pharmacological therapy with a PDE5 inhibitor, such as sildenafil, can be attempted. In some cases, treatment can involve inserting prostaglandin pellets into the urethra, injecting smooth muscle relaxants and vasodilators into the penis, a penile prosthesis, a penis pump, or vascular reconstructive surgery.
Usually there will not be a specific treatment that will lead to the improvement of erectile dysfunction. However, there are treatments that will allow erections to happen and can be used to allow sexual activity to take place. There are three main types of treatments: non-invasive treatments such as tablet medicines and external devices (e.g. vacuum device); penile injections; or for men who have not had success with other treatments, surgery may be an option.
Communicate with your partner. Do you feel comfortable and accepted when it comes to your sexual performance? If you're worried about meeting your partner's too-high expectations or living up to some kind of standard, it will be harder to maintain an erection - it's called performance anxiety. If you think your partner's judgment might be hindering your ability to have satisfying sex, you need to communicate your needs and find ways to make your sexual environment more inviting.
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.
With the pumps, erections last until the user hits the deflate button, which Kohler says “doesn’t happen” accidentally. He adds that pump prostheses “are locker-room proof: Nobody can see that you have one.” (Obviously, this is not the case with the always-on malleable rod option.) Implanted pumps are reliable, experts say, with more than 90 percent of the devices working for 12 to 15 years.
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.