How can Vitamin D affect mood and energy levels in the body?

How can Vitamin D affect mood and energy levels in the body?