Cody Hagen scored on a 32-yard run in the fourth quarter and No. 25 BYU rallied to beat Colorado 24-21