Research has found that non-steroidal anti-inflammatory drugs (NSAIDs) are effective against pain caused by muscle cramps, such as lower back spasms. In severe cases, a person may experience better relief by taking NSAIDs and muscle relaxers