The hamstring muscles are responsible for your hip and knee movements in walking, squatting, bending your knees, and tilting your pelvis. Hamstring muscle injuries are the most common sports injury.