A muscle in the quadriceps, the rectus femoris muscle is attached to the hip and helps to extend or raise the knee. This muscle is also used to flex the thigh. The rectus femoris is the only muscle that can flex the hip.

See the full article here.

Interestingly, even though it’s the only muscle that can actually flex the hips, the “hip flexors”, as commonly used, are still comprised of multiple muscles.