If the pain from a pinched nerve is severe, your doctor may recommend that you take painkillers. You may be advised to take over-the-counter painkillers, or you may be prescribed stronger prescription painkillers. Painkillers work by blocking and interfering with the pain signals going through the brain.