These muscles play an important role in stabilizing the pelvis and rotation of the hip. These muscles are the piriformis, gemellus superior, obturator internus, gemellus inferior, obturator externus, and quadratus femoris. This small group of muscles is a major culprit in low back and leg pain.