seems to be more of psychological issues. Is it performance anxiety for him or some other emotional issues? If he can masturbate then there is no issues. Best is talk it over .... failing which see a sexpert.
If semen comes into contact with your vagina, the pregnancy is possible.
I'd maybe consult a doctor - if you haven't already - for your husband's erectile issues.