Aaron Henry scored a career-high 27 points and No. 17 Michigan State ended a three-game losing streak with a 84-77 victory over Nebraska on Saturday night.

The Spartans (7-3, 1-3 Big Ten) bounced back from a 25-point loss at Minnesota on Monday and beat Nebraska for the seventh straight time.

"The focus today was just to get a win," Henry said. "Anything we could do to get a win. Anybody that comes to Michigan State, that's the standard we're held to. I set a career high for myself. Yeah, that's fine and dandy. I want to win. That's all I care about."

Nebraska (4-7, 0-4) lost its 21st straight Big Ten game. It is off to its worst conference start since 2013-14.

Michigan State looked ready to break it open early in the second half, but the Huskers hung around thanks to the scoring provided by Teddy Allen.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Allen, averaging just under 18 points, spent most of the first half on the bench with two fouls. He scored 19 of his 23 points in the last 16 minutes.

His deep 3-pointer got the Huskers to 66-61 with seven minutes left, but baskets by Rocket Watts and Joshua Langford put the Spartans ahead by double digits with just over three minutes to play.

The Huskers were back within five points three times in the final minute, though, the last time after Allen snaked his way through the lane for a layup.

"First and foremost, our energy was phenomenal tonight," Nebraska coach Fred Hoiberg said. "I thought it was where it needed to be to have a chance to win that game. Against a team like this coming off three losses, which doesn't happen to Tom Izzo's teams very often, we knew they would come out and play hard and play with great energy. I thought we really battled them and fought all the way through."

Langford finished with 15 points, and Gabe Brown added 10 for the Spartans.

"We didn't necessarily do it for 40 minutes tonight, but we (played) Michigan State basketball more than we have been in the past games," Langford said, "and I think this is a great step moving forward."

Trey McGowens had 15 of his 20 points in the first half for Nebraska. Kobe Webster added 10.

The teams played on even terms early, with neither team leading by more than three points the first 14 minutes. Henry’s 3 with just under seven minutes left in the first half put the Spartans up 24-23, and they never trailed again.

Allen was on the bench in his warmup top and a towel draped over his shoulders the last 10:45 of the first half. He was called for a flagrant-1 foul for elbowing Henry in the neck, and he committed his third foul a minute into the second half and went back to the bench briefly.

"I didn’t think Teddy came out with the right mentality and we got him out," Hoiberg said. "When I put him back in he was unbelievable, as good as he’s been all season."

Before Allen returned, it was McGowens who kept the Huskers within range. He scored 15 points before half, and he brought a roar from teammates for a giant dunk late in the game.

BIG PICTURE

Michigan State: With the exception of Henry, the Spartans weren’t sharp offensively early, but they opened the second half with a flurry, built a double-digit lead and held on to avoid their first 0-4 start since 1979-80.

Nebraska: The Huskers gave a strong effort after losing 90-54 at Ohio State on Wednesday. They hung around even though they didn’t have Allen most of the first half.

NEW POINT GUARD

Spartans freshman A.J. Hoggard drew his first start at point guard in place of Watts, who moved to the off-guard spot and came off the bench five minutes into the game. Hoggard finished with five assists, four points, three rebounds and two blocks.

"Sky's the limit for him," Henry said. "He's only going to grow as a player. I'm glad he got the opportunity he did. It won't show up on the stat sheet, but he did a lot of good things for us."

UP NEXT

Michigan State: Hosts No. 14 Rutgers on Tuesday.

Nebraska: At Purdue on Tuesday.