Maybe your performance issues stem from feelings of discomfort relating to something you've done. Are you having trouble performing because you're feeling uncertain about whether you really love your partner? Or because you feel like you crossed a line in terms of infidelity and now the guilt is tearing you up inside? Maybe your conscience is what's wreaking havoc with your sex.
Erectile dysfunction (ED), also known as impotence, is the inability to achieve or sustain a hard enough erection for satisfactory completion of sexual activity. Erectile dysfunction is different from other health conditions that interfere with male sexual function, such as lack of sexual desire (decreased libido) and problems with ejaculation release of the fluid from the penis (ejaculatory dysfunction) and orgasm/climax (orgasmic dysfunction), and penile curvature (Peyronie's disease), although these problems may also be present. ED affects about 50% of men age 40 and over. This article focuses on the evaluation and treatment of erectile dysfunction.
In other words, there are dozens of reasons he might not be getting it up, which have absolutely nothing to do with your relationship. Honestly, there's just no way for me to give you specific advice here. If it's a serious problem, you should encourage him to check in with his primary care physician first, and then, perhaps, a therapist, in the nicest way possible.
Endocrine evaluation consisting of a morning serum testosterone is generally indicated. Measurement of serum prolactin may be indicated. A low testosterone level merits repeat measurement together with assessment of luteinizing hormone (LH), follicle-stimulating hormone (FSH), and prolactin levels. Other tests may be helpful in excluding unrecognized systemic disease and include a complete blood count, urinalysis, creatinine, lipid profile, fasting blood sugar, and thyroid function studies.
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.
Constriction of the trabecular smooth muscle and helicine arteries induced by sympathetic innervation makes the penis flaccid, with blood pressure in the cavernosal sinuses of the penis near venous pressure. Acetylcholine is thought to decrease sympathetic tone. This may be important in a permissive sense for adequate trabecular smooth muscle relaxation and consequent effective action of other mediators in achieving sufficient inflow of blood into the lacunar spaces. When the trabecular smooth muscle relaxes and helicine arteries dilate in response to parasympathetic stimulation and decreased sympathetic tone, increased blood flow fills the cavernous spaces, increasing the pressure within these spaces so that the penis becomes erect. As the venules are compressed against the tunica albuginea, penile pressure approaches arterial pressure, causing rigidity. Once this state is achieved, arterial inflow is reduced to a level that matches venous outflow.
…have traditionally been classified as impotence (inability of a man to achieve or maintain penile erection) and frigidity (inability of a woman to achieve arousal or orgasm during sexual intercourse). Because these terms—impotence and frigidity—have developed pejorative and misleading connotations, they are no longer used as scientific classifications, having been…
In a randomized double-blind, parallel, placebo-controlled trial, sildenafil plus testosterone was not superior to sildenafil plus placebo in improving erectile function in men with ED and low testosterone levels.  The objective of the study was to determine whether the addition of testosterone to sildenafil therapy improves erectile response in men with ED and low testosterone levels.
Qaseem, A., Snow, V., Denberg, T. D., Casey, D. E., Forciea, M. A., Owens, D. K., & Shekelle, P. (2009). Hormonal testing and pharmacologic treatment of erectile dysfunction: A clinical practice guideline from the American College of Physicians. Annals of internal medicine, 151(9), 639-649. Retrieved from http://annals.org/aim/article/745155/hormonal-testing-pharmacologic-treatment-erectile-dysfunction-clinical-practice-guideline-from