The causes of erectile dysfunction include aging, high blood pressure, diabetes mellitus, cigarette smoking, atherosclerosis (hardening of the arteries), depression, nerve or spinal cord damage, medication side effects, alcoholism or other substance (drug) abuse, pelvic surgery including radical prostatectomy, pelvic radiation, penile/perineal/pelvic trauma such as pelvic fracture, Peyronie's disease (a disorder that causes curvature of the penis and sometimes painful erections), and low testosterone levels.
In the meantime, make sure he gets some rest and takes it easy. The more you two stress about it — and the more pressure he feels you are putting on him — the harder it will get for him to get hard, in all likelihood. So take a few days off. Relax, be patient, and help him find him some help if he needs it. In the meantime, here's a Cosmopolitan.com guide about exactly this topic from sex therapist Dr. Jane Greer.
The dorsal artery provides for engorgement of the glans during erection, whereas the bulbourethral artery supplies the bulb and the corpus spongiosum. The cavernous artery effects tumescence of the corpus cavernosum and thus is principally responsible for erection. The cavernous artery gives off many helicine arteries, which supply the trabecular erectile tissue and the sinusoids. These helicine arteries are contracted and tortuous in the flaccid state and become dilated and straight during erection. 
As with most other organ system in the human body, changes and loss of function is normal consequence of the ageing process. This is also true of the endocrine system, specifically the levels of testosterone production from the Leydig cells of the testicle. Accompanying the decrease in testosterone is a decrease in erections which also has a component in decrease in the blood supply to the penis making erection not as frequent and not as rigid compared with a young man’s erectile function. Although these changes are in itself not life threatening, they can impact a man’s relationship with his partner, and also ED may be a harbinger of other undiagnosed conditions such as coronary artery disease (CAD), hypercholesterolaemia or diabetes mellitus.6
This consensus development conference on male erectile dysfunction has provided an overview of current knowledge on the prevalence, etiology, pathophysiology, diagnosis, and management of this condition. The growing individual and societal awareness and open acknowledgment of the problem have led to increased interest and resultant explosion of knowledge in each of these areas. Research on this condition has produced many controversies, which also were expressed at this conference. Numerous questions were identified that may serve as foci for future research directions. These will depend on the development of precise agreement among investigators and clinicians in this field on the definition of what constitutes erectile dysfunction, and what factors in its multifaceted nature contribute to its expression. In addition, further investigation of these issues will require collaborative efforts of basic science investigators and clinicians from the spectrum of relevant disciplines and the rigorous application of appropriate research principles in designing studies to obtain further knowledge and to promote understanding of the various aspects of this condition.
"One couple came to see me, and when I asked the man how long he'd had erectile dysfunction, he told me it had been happening for five years. His wife looked at him and said: 'But this is the first I've heard of this.'" He adds that Viagra-type drugs can mask the problem, and many men still buy them online to avoid talking to their doctor about their difficulties in the bedroom. As a result, their risk of heart attack is never picked up.
In order to establish whether normal erections are occurring overnight (nocturnal erections), the doctor may organise nocturnal penile tumescence (NPT) testing. This involves wearing a monitor overnight in your own home. The data from this monitor is then assessed to analyse how often erections occurred, how long they lasted, and how rigid and large the penis was during the erections. If NPT testing is normal, the cause of erectile dysfunction is usually psychological. If not, further testing of the blood flow in the genital area may be required to see if there is blockage or leakage. The doctor may also organise a blood test of levels of hormones such as testosterone, prolactin and thyroid stimulating hormone to see if these are contributing to the erectile dysfunction.
PDE 5 inhibitors are broken down primarily by enzyme, cytochrome P450enzyme CYP3A4. Medications that decrease or increase the activity of CYP3A4 may affect levels and effectiveness of PDE 5 inhibitors. Such drugs include medications for the treatment of HIV (protease inhibitors) and the antifungal medications ketoconazole and itraconazole. Thus caution is recommended.
ED usually has something physical behind it, particularly in older men. But psychological factors can be a factor in many cases of ED. Experts say stress, depression, poor self-esteem, and performance anxiety can short-circuit the process that leads to an erection. These factors can also make the problem worse in men whose ED stems from something physical.