An anti inflammatory will help, but I also recommend lying flat on the floor, face down.
Let all your muscles totally relax for a moment or two.
Then slowly use your arms to push your upper back off the ground. Keep your lower back & hips on the floor to form a good arch in your spine.
Hold the position for 30 seconds and repeat six times.
Maintain this programme 3 times a day.
This will help straighten your spine and may gradually release any nerve that has been trapped by a temporary kink.
I've suffered back problems for many years and this basic exercise is one of the best I know for helping to reduce back pain.