You should see a doctor if:
The pain is severe and does not improve with rest and home treatment
The pain is accompanied by other symptoms, such as fever, chills, or loss of bladder or bowel control
The pain is getting worse over time
You have a history of cancer or other serious medical conditions