For me, it's mostly retreat, regroup and get back. I accepted that it is okay not to be motivated the whole time. I take a break from everything and curl up in my room. When I feel better, I try to figure out what needs to be done first. And then I go back out.
That's to be said that constant loss of motivation, could be a sign of Depression or other mental and/or physical Illnesses. If this continues, you should talk to your Doctor about this.