The muscles in the lower leg allow the toes and ankles to move. These muscles include the:  Tibialis anterior, a strip of muscle on your shin that allows you to flex your ankle. Extensor digitorum longus, a muscle that connects the leg to the foot.