No sex... am I the problem?

I’ve been with my partner for over four years now. Only been sexually active since last year. So just over a year.

We used to have sex often when we saw each other (a few weekends here and there) and then now we hardly have it. He never seems interested and just doesn’t want too. I just want to know if anyone has been in this situation and what they did?