If melatonin hasn't worked or makes you feel groggy, you might want to try magnesium. Here are the sleep benefits it offers.