Have you tried asking him? Maybe he is embarrassed to tell you about a medical or mental condition that is affecting his performance. Tell him how you feel, that you feel unloved, unattractive, or whatever it is. Assure him that you love him, regardless of what he is going through. Find out what lies at the bottom of this change, and see if you can work through it together. I wish you all the best.