Hormone imbalances would be best checked by bloodwork. You definitely should speak to a physician! But yes, that could definitely be a contributing factor to a low sex drive. As could any medications you're taking, especially things like mood stabilizers or antidepressants. As we all know, your brain is your most important sex organ. I definitely recommend talking to your family doctor, or bringing it up at your next physical if you have one scheduled soon.
If it's a confidence thing, one of the most important things I did for myself after my last tragic breakup was joining a burlesque troupe. Maybe that's a bit much for some people but I think it's important to have an outlet to rediscover that meeeooowwwwrrr again
Best wishes!