The role of the gluteus medius during activities such as walking and running is to dynamically stabilize the pelvis in a neutral position during single leg stance. As you can see in the photo below, weakness of the right gluteus medius will cause the left hip to drop when standing on the right limb.