Whether it be to do your job, get your schoolwork done, clean your house, work on your creative passion, etc.
Bonus points if you’re someone without reasonable self-control so saying something like “I can only have a cookie after I do this/while I do this” doesn’t work for you and you’re just going to eat the cookie and not do it.
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.