* Magnesium: It plays a role in the bodily function that regulates sleep. Insomnia is one of the symptoms of lack of magnesium. A 2006 analysis in the journal Medical Hypothesis suggests that magnesium deficiency might be cause of depression and mental health problems. Dark leafy vegetables, pumpkin seeds, sesame seeds and beans are some of the food items rich in magnesium.