Hello..
Well the common causes of erectile dysfunction can be anxiety itself, any metabolic disorders commonly
diabetes, lack of exercise, smoking, medications etc..It's better you consult a general surgeon and get yourself examined for it.. Thank you