It can be due to stress and anxiety,poor communication with your partner, unrealistic sexual expectations, which make sex a task rather than a pleasure,negative feelings about non performance,smoking, alcohol and sometimes illicit drugs and medical conditions like
diabetes, high blood pressure,
heart or thyroid conditions, poor circulation, low testosterone, depression or spinal or neurological causes.