I'm not a doctor, but I've dealt with these before. You may be burned out, depressed, or both. While taking a good break and changing up your life can help if your burned out, it will often just mask depression.
I would encourage you to talk to a doctor and find a good psychologist who understands cognitive based therapies. The best responses to depression include both pharmacological and brain hacking (which is what CBT is). They can help you understand if you are burned out, depressed or both.
I wish you well. It's a hard spot to be in, but one you can get out of. Feel free to email me (in my profile) if I can answer any questions (or do much of anything else) for you.
Since I don't know your situation, I obviously cannot give proper informed advice. But one option is to quit and/or to move.
I've felt depressed (distinct from episodes of 'proper' depression) very often in my life. It often too much longer to get out of this because I was looking for a fix, while the fix often resulted from just doing something different, sometimes even seemingly stupid. But it always worked. Breaking patterns.