I have been there. I have been in a situation where I just did not want to have sex.
I was in a kind of "anti-social" mood. I didn't really want to connect to anybody, her included. I tried to interact with her enough to keep her happy, but too much was profoundly uncomfortable. And letting loose and playing with her, especially sexually, was definitely too much. I could force myself to "go through the motions" for "normal" interactions, but getting naked, literally and figuratively, and playing with her was something I dreaded.
There was nothing wrong with my sex drive. I just didn't want to deal with another person.
It went on for far too long, and it still creeps up from time to time.
a fine and enviable madness, this delusion that all questions have answers, and nothing is beyond the reach of a strong left arm.