Hip pain can be caused by wear and tear over time, injury, or deformities present from birth. See a doctor immediately if you experience a crack in your hip bone, difficulty with daily activities like stairs, or pain when sleeping or moving your leg. Treatment depends on the cause but may include over-the-counter medication for minor cases, while chronic hip pain could require surgery like hip replacement. Hip replacement is usually considered when a patient has exhausted other options and is at an advanced stage of disease.