Tom Brady connected with Brandin Cooks for a 25-yard touchdown pass with 23 seconds left, his fifth TD throw of the game, and the New England Patriots rallied to beat the Houston Texans 36-33 on Sunday.