The head of the femur, or thigh bone, has the shape of a ball that fits in a socket in the pelvis.