decreased libido

recently I've been having v little interest in sex or anything of the sort and even really in relationships. i wanted to try mastrubating but couldn't rly get myself going. I don't like porn, nothing like that turns me on. I used to have a v active imagination and could get off on that but nothing I can imagine affects me anymore. I'm definitely too young for menopause but I'm wondering if I could have some sort of hormone imbalance?