Personally I found that the times I am most in a long term lull of procrastination, is when I am not getting enough sleep. It's sort of a self fulfilling cycle. I stay up late working, next day I try again, but I am too tired to focus, so I stay up later but get less done, next day I stay up late with even less productivity, etc. If I just break and get sleep, I am more fresh and ready to be more productive the next day. Also keeping organized, setting small task goals, eating healthy, and staying hydrated are all important for productivity.