the hip flexors and extends work with the quad area and the hamstring to move the leg muscles forward and backward. the hip rotator muscle stabilize the hip joints.
the link below explains in more detail about the leg muscles used in running.
https://adventure.howstuffworks.com/outdoor-activities/running/training/leg-workouts-for-runners1.htm