Telling you what works for me in no particular order:
- clean and well balanced food. Yes, veggies too
- vitamin D
- working out
- enough sleep, but not too much. But try to have your 6 - 9h (depends) and stick to it
- being motivated by something (partner, money, kids etc.)