Pain in the thigh that prevents walking may be caused by local inflammation and soft tissue injury. If you have no history of trauma, have a long history of alcohol abuse, or have been taking hormonal drugs for a long time, you should suspect femoral head necrosis to be the cause.