Melatonin eased chronic musculoskeletal pain about as effectively as over-the-counter painkillers, a new study found. The researchers say that melatonin is safe in the short term at low doses, but experts advise talking with a doctor before trying melatonin for pain.