//www.healthline.com/health/
erectile-
dysfunction/young-men#treatments You are going to have to tell your doctor. They'll rule out a medical reason such as heart issues, diabetes, and check your hormone levels. If you are overweight or obese, that can also cause it. If it is not related to an underlying issue like that, then it is likely psychological. Stress can cause this. You aren't taking any new medicine also, they'll check that.