AUSTIN, Texas -- There's life in Texas yet. And maybe the pressure will ease off of coach Mack Brown, even if just for a few hours or days.
Gray became Texas' first 100-yard rusher on the season and Texas' defense, pushed around in consecutive losses, put up a solid and energetic performance, forcing three critical second-half turnovers.
Brown has been under intense pressure after three sub-par seasons and a bad start this year. The victory allowed Texas (2-2, 1-0) to avoid its first 1/3 start since 1956 and snapped a five-game losing streak to the Wildcats.
"You always want to start the conference off right," Gray said. "We wanted to prove a point and hit them in the mouth."
Gray's first touchdown in the second quarter came after he made two dazzling cuts on a 21-yard run. His second put Texas up 24-7 in the third. Malcolm Brown ran for Texas' last touchdown after the Wildcats had pulled within 10 points early in the fourth quarter.
Ash, who missed the previous game with concussion-like symptoms, passed for 166 yards in the first half but missed the second with a new head injury. Senior Case McCoy took over, leading two touchdown drives.
Texas came in as a team desperate to turn around it season. After consecutive losses, Brown urged his team to focus on the Big 12 and trying to win the league crown. The Longhorns, most notably the defense, responded with their most complete game of the season against the defending Big 12 champs.
The defense, which played so poorly in the two losses, gave up a huge night receiving to Lockett, but forced the three turnovers that swung momentum early in the second half and preserved the win late.
"We came out fired up," Texas defensive end Jackson Jeffcoat said. "This was a team we hadn't beaten in a while."
Brown has been harshly criticized by Texas fans after the bad start to the season and his job future beyond this season rapidly escalated into a matter of open speculation.
On Thursday, a member of the Texas board of regents acknowledged that he and a former regent spoke in January with Alabama coach Nick Saban's agent about Saban coaching the Longhorns if Brown retired. Two days later, Brown was asked if he would consider retiring, but the matter was dropped when Brown said he wanted to keep coaching.
Saban dismissed speculation he'd be interested in the Texas job, but that didn't stop some Texas fans from printing burnt-orange "Saban 2014" t-shirts and wearing them to the game Saturday night.
Brown did his best to push away the critics and the speculation about his job during the week.
"I said I'm going to be doing everything I can do to beat Kansas State. I haven't heard one word of it," Brown said. "This can be a really good football team before we finish."
Ash, who had been cleared to play Friday night, showed no effects of the previous head injury early in the game. But he took several big hits, both on runs and when standing in the pocket, before floating a perfectly-thrown pass to Kendall Sanders for Texas' first touchdown.
Texas went up 17-0 on Gray's first touchdown. Kansas State responded with its first drive across midfield and Hubert spun through two tacklers on a 15-yard touchdown run with 1 minute left in the half.
Ash was removed from the game at halftime to be evaluated for a head injury and didn't return, putting the game and the job of managing the lead in McCoy's hands. Kansas State fumbled on the first possession of the third quarter and McCoy handed the ball to Gray seven times in eight plays on a 56-yard drive to a touchdown and a 24-7 lead.
"It was major, quite obviously," Kansas State coach Bill Snyder said of the turnover. "It had a dramatic impact on the outcome of the ball game ... We need some leadership to really step up."
Hubert's second touchdown pulled Kansas State within 24-14 early in the fourth. Kansas State had pulled within 10 and was driving for a touchdown when Waters, who ran for a touchdown and passed for 275 yards, fumbled on the Texas 6 with 2:03 left to play.
The Wildcats had one last chance when Tramaine Thompson returned a punt 40 yards inside the Texas 15, but Waters was sacked twice and fumbled with 17 seconds left.
"It came down to us as a team, fighting," McCoy said.
GameDay 100 Leonard Fournette trucks over opponent to score 22-yard rushing touchdown.
Joel Honigford is Michigan's fourth ESPN 300 commitment this month and could develop into a quality starter.
ESPN.com's Ivan Maisel calls into The Paul Finebaum Show to make early predictions for this season's College Football Playoff.
Hugh Kellenberger joins The Paul Finebaum Show to discuss Mississippi State's 2016 season.
Hugh Kellenberger calls into The Paul Finebaum Show to preview the Rebels' season opener against the Seminoles.
The Missouri Tigers will hope a still-stout defense can hold the fort will the offense finds itself before a rough October stretch.