Assuming its not a medical issue... we all go though those down times.
I try a few things to keep myself focused longterm:
Have a plan- I pick a few races I want to run each year, I pay long in advance and I train to do those races, short term.
Rest a lot- I try to only run 3 days a week, and take a week off every month, I take an entire month off a couple times a year (usually March and August).
Partner- I've tried it alone, it's really tough in the long term, so I don't, I have running partners, current one has lasted about 4 years.
Priority- Running (overall health) is my priority, without it I'm no good at work, family, won't live as long, etc.
Hope this helps.