Get evaluated. First, you have to rule out physical causes of the lost sex drive. Contact your primary care doctor. You can ask for a referrals along the line. Meanwhile, stress, anxiety, substance will affect performance. Proper evaluation is the key and the treatment will start from there. Good luck!