Medication such as pain killers or ibuprofen is not always the way to ease the pain. There are many other ways which you can do this without putting medicine into your body.
One of the best ways to ease the pain is with heat or coldness. Depending on the pain will depend on the temperature. Using a hot water bottle or cold patch directly on the area will help ease the pain.
Another method of easing pain is by having a warm yet steamy bath. Using this method can help you to relax and essentially forgetting about the area which is causing you pain.
You can also try massaging the area which is painful. This will not always work and could cause more pain than a help. But it is worth trying before putting medication into your body.
It is important to note that if the pain is more serious and does not relieve with these methods or medication that you seek help from a doctor or nurse.