This pretty much sums up my life. Times where I have had motivation, I have succeeded greatly. Times where I have not, I stagnate and don't move forward.
Unfortunately, motivation is fleeting. It's as though my brain is hyper sensitive to novelty. If I can find something I find interesting, I am granted immense motivation and focus. But that quickly dwindles.