No. 3 Texas A&M rallied from a school-record 27-point deficit to remain undefeated with a 31-30 victory over South Carolina on Saturday.