The gemellus superior is innervated by the nerve to the obturator internus, and the gemellus inferior is innervated by the nerve to the quadratus femoris. The gemellus muscles act with the obturator internus muscle to laterally rotate and abduct the femur at the hip joint.