You may first consult a Physiotherapist and then follow accordingly .An assessment is required before suggestion any investigations.
You may just have a muscle strain which forms a viscious cycle of pain and spasm .
Next Steps
Consult a Physiotherapist ..
Health Tips
Avoid heavy lifting until you are fully cure.