Age is certainly a factor, older men are more likely to have erectile dysfunction. Other factors that may cause sexual dysfunction
are: meds (anti-depressants, some BP meds) , smoking
, psychological, diabetes
, and many others.
Those who maintain overall health are less likely to have sexual dysfunction.
Answer assisted by Tejas Ozarkar, Medical Student