Your ability to orgasm is not connected to the prostate gland, although a man who has had a radical prostatectomy will have a dry orgasm with no ejaculation. As long as you have normal skin sensation, you should be able to have an orgasm with the right sexual stimulation. This means that treating your ED will allow you to resume a normal, healthy sex life.
But he may have a real problem. Generally, erectile dysfunction is linked to cardiovascular health. If your guy has serious health problems, drinks and smokes too much, or does too many drugs, those conditions may play a role. Obesity, heart disease, prescription medications, and diabetes are just a few of the common risk factors. And then there are the psychological causes: depression, stress, and the million things flashing through his head when he's struggling to get it on.
Following a detailed discussion about the history of erectile dysfunction and its risk factors, your doctor will examine the testicles and penis to help determine the cause of erectile dysfunction. Your doctor will check reflexes and pulses in the area to see if problems with blood vessels or nerves are contributing to the erectile dysfunction. If necessary, your doctor will order tests to help diagnose erectile dysfunction.
A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
There are hundreds of medications that have the side effect of ED and/or decreased libido. Examples of drugs implicated as a cause of ED include hydrochlorothiazides and beta-blocking agents. Medications used to treat depression, particularly the SSRIs such as citalopram (Celexa), escitalopram (Lexapro), fluoxetine (Prozac, Prozac Weekly, Sarafem), fluvoxamine (Luvox, Luvox CR), paroxetine (Paxil, Paxil CR, Pexeva) and sertraline (Zoloft), may also contribute to ED.9 Bupropion (Wellbutrin) which has a predominant effect on blocking the reuptake of dopamine is an antidepressant with lower incidence of ED.10 The side effects of 5ARIs occurring in fewer than 5% of patients can include gynaecomastia, ED, loss of libido and ejaculatory dysfunction.11
Conditions that may be associated with ED include diabetes, [25, 26, 27] hypertension,  , and CAD, as well as neurologic disorders, endocrinopathies, benign prostatic hyperplasia,  , sleep apnea  , COPD,  and depression (see Table 1 below). [32, 33, 34, 35] In fact, almost any disease may affect erectile function by altering the nervous, vascular, or hormonal systems. Various diseases may produce changes in the smooth muscle tissue of the corpora cavernosa or influence the patient’s psychological mood and behavior.
Penile prostheses are very effective, and most patients who have a prosthesis placed are satisfied with the prosthesis. However, placement of a prosthesis causes scarring of the tissue within the corpora cavernosa, and if the prosthesis requires removal, other forms of therapy, except for the vacuum device, are often not effective. Thus, most physicians reserve placement of a prosthesis for men who have tried and failed or have contraindications to other therapies.