Any kind of physical exercise , yoga , regular walk will help. But first get yourself assessed for the reason behind these pains. It may be improper posture, lack of exercise. ,
vitamin B12 or D3 deficiency etc. Accordingly you will need to work on your basic problem and then strengthen yourself with a good exercise regime.