Doctors often use X-rays, MRI scans, ultrasound and blood tests to diagnose the cause of leg pain.