There are other reasons to take it too. In a study with chronic pain patients, vitamin D helped reduce pain, improve quality of life, and increase sleep.(4) Having adequate levels of D may protect against cancer, control inflammation, heart disease, poor mood, and may help regulate the immune system.