You'll more quickly break out of a funk when you understand the conditions around you that are causing it.
Here's my process for improving anything about my life (including feeling unmotivated)