You get to decide what is normal for you. That might include him still experiencing pleasure from you touching his penis even if he’s not hard. Some men can still orgasm without an erection. Or he may prefer not to have any touching while he is dealing with his erection problems. It is okay for you to orgasm even if he doesn’t. Reading about what might bring you pleasure, or considering how you think about sex can make this something enjoyable to explore together.
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. 
If you just got off solo, you might have to wait before you can hop into bed with your partner, says Dr. Brahmbhatt. It might have something to do with a spike in the hormone prolactin after you orgasm, according to a study published in the International Journal of Impotence Research. This hormone has been linked to difficulties maintaining an erection or even ejaculating.
In a prospective study from the Prostate Cancer Prevention Trial database, Thompson et al reported that men presenting with ED had a significantly higher chance of developing a cardiovascular event over a 7-year follow-up period.  The hazard ratio was 1.45, which is in the range of risk associated with current smoking or a family history of MI.
High cholesterol and triglyceride levels increase the risk of cardiovascular disease. Getting your cholesterol and triglyceride levels in an optimal range will help protect your heart and blood vessels. Cholesterol management may include lifestyle interventions (diet and exercise) as well as medications to get your total cholesterol, LDL, HDL, and triglycerides in an optimal range.
When you become aroused, your brain sends chemical messages to the blood vessels in the penis, causing them to dilate or open, allowing blood to flow into the penis. As the pressure builds, the blood becomes trapped in the corpora cavernosa, keeping the penis erect. If blood flow to the penis is insufficient or if it fails to stay inside the penis, it can lead to erectile dysfunction.
Lifestyle choices that impair blood circulation can contribute to ED. Smoking, excessive drinking, and drug abuse may damage the blood vessels and reduce blood flow to the penis. Smoking makes men with atherosclerosis particularly vulnerable to ED. Being overweight and getting too little exercise also contribute to ED. Studies indicate that men who exercise regularly have a lower risk of ED.