Motivation is difficult but if I have structured plans and start small, then motivation can build as I make small amounts of progress.
I found motivation doesn't have to be there to start, it can be created as long as we see a task/milestone that is not impossible (assuming the end goal still aligns with our objective/future outlook).
We can become re-motivated by taking a break, visualising the end goal or exploring our feelings that brought motivation early on and try revisit / recreate these.
Focus / Energy is a bit more difficult. On days where I have tiredness, fog or bad focus, it doesn't always clear up if I get started and push on. I have the knowledge in my head but the connections are not quite firing, an opaque feeling, recall is bad, reading is harder, progress is slow, motivation does not come.