You can take some OTC NASDs, such as aspirin or ibuprofen, to relieve the pain. Keep in mind that the effect is only temporary. If you still feel pain after a few days, it is better to see your doctor to seek a better treatment option. Make sure to follow the instructions on the label and take the right dosages. There may be some possible side effects, such as nausea, vomiting, drowsiness, or headache. If you are taking other medications, it is better to check with your doctor to avoid drug interactions. 
Resting plays an important role in healing a pinched nerve. The body naturally repairs its cells and tissues when you are sleeping. Therefore, if you spend more time resting, it may help alleviate the symptoms quicker. Another benefit of resting is to avoid overusing the affected nerve. If you keep moving around, working or doing physical activities, it may cause more damage and worsen the symptoms. Sleeping and resting are the best way to reduce pressure and get rid of a pinched nerve.