Anti-convulsant medications are the category of medications that work to relieve nerve pain. These medications alter the function of the nerve and the signals that are sent to the brain. The most commonly prescribed anticonvulsant medication for nerve pain is called Neurontin (Gabapentin).