Your doctor will likely ask you about your medical history and perform a physical exam. They may also order imaging tests, such as an X-ray, MRI, or CT scan, to help diagnose the cause of your pain.