Hello dear, may I know your age? usually pain
around neck and lower back is because of sponylosis in patients after 45 years of age. In es earlier age group it could be because of disc problem. You require regular exercise, proper posture and some medicine in case of acute pain. Rest is mandatory in acute painful conditions.