Erectile dysfunction can be linked to factors such as stress, anxiety, underlying health conditions, medications, or lifestyle habits. A provider can help identify possible causes during your consultation.