1. Good sleep. Note I didn't say "enough" sleep but good sleep. To wake up fresh in the morning you have to sleep well and you do that by going to bed early. Also, eating in the morning will teach your body that the morning is the period with lots of energy available so it will wake up in the morning.
2. Exercise. Periodic, daily exercise helps to clean your brain. Literally. Caveats: biking does not count plus cold air can give you a slight brain inflammation which leads to "don't feel like working". Every time you brain is not in top shape, you will feel like not working. I recommend moderate weight lifting.
3. Eat properly. Plenty of advice on internet. Your brain works with the food you eat, so if you eat garbage your brain will run on garbage.
4. Daily rest. Plan each day a proper rest. For your brain. I.e. when you do physical work, you rest by staying still. When you use your brain to work, you rest by going in the park and not thinking at all if possible :). Caveats: documentaries, games and other things that make you think do not count. Sorry :)
I include here plans to do things that you really would like to do a.k.a "live your life". This change of scenery helps a lot when you go back to work. You will feel very motivated.
Each time I don't feel like working I just think about what I did in the last days or week and see which one I skipped.
Usually people recommend 1-3 but I was doing that and still no results. Once I implemented 4 I was really productive.