SAN DIEGO (AP) -- San Diego St. quarterback Kevin O'Connell completed his first 12 passes and ran for a touchdown to lead the Aztecs to a 31-10 win Saturday night over Brigham Young University. San Diego St. (2-3, 1-1) never trailed and won their first Mountain West Conference game of the season in front of 41,680 at Qualcomm Stadium. The win ended a four game losing streak to BYU (1-3, 0-2). After a scoreless first quarter, San Diego State went ahead 7-0 with 8:57 left in the second. A 26-yard run by Lynell Hamilton set up O'Connell, who scored on a keeper on third and goal from the seven. Garrett Palmer kicked a 30 yard field goal to put the Aztecs up 10-0 with 5:54 left in the half. After BYU's Bryan Kehl recovered a fumbled punt return on the Aztecs' 40, Jared McLaughlin hit a 34 yard field goal to get the Cougars back within seven. The Aztecs answered on their next possession as Hamilton capped a 15-play, 76-yard drive with a one yard touchdown run for a 17-3 lead. San Diego St. extended the lead on their second possession of the second half, scoring in the red zone for the fourth time in four tries. On first and goal from the four, Brandon Bornes plunged into the end zone for a 24-3 Aztec lead. BYU opened the fourth quarter with Naufahu Tahi scoring on a one yard touchdown run, but the Aztecs extended the lead to 31-10 two minutes later with a 90-yard drive capped by Hamilton's 6-yard TD run. With 9:42 remaining, the Aztecs' defense held BYU on fourth and three from the Aztec six yard line. SDSU ran 3:49 off the clock, before BYU gained possession with 5:53 remaining. BYU was intercepted with 3:40 left, which sealed the game for the Aztecs. SDSU wide receiver Jeff Webb caught a career high 13 passes for 129 yards. BYU quarterback John Beck finished 25 of 49 for 261 yards and two interceptions.