What meds work for nerve pain?

Anything work for back pain and associated nerve pain? NSAID’s aren’t helping.

Ice or warm water. Plenty of rest.