That little pill beside your bed that you take to help you sleep may be doing more than just knocking you out. A new review of 23 clinical trials involving more than 2,000 people found that melatonin, a hormone your brain releases at night, can also help with long-term muscle and joint pain. The problem? It is mild relief and it barely works for pain after surgery.