With their season on the line, Jonas Valanciunas and Ja Morant teamed up to make history and keep the Memphis Grizzlies' playoff hopes alive.

Valanciunas and Morant had triple-doubles, Dillon Brooks scored 31 points and the Grizzlies beat the Milwaukee Bucks 119-106 on Thursday in Lake Buena Vista, Fla., to wrap up a spot in the play-in tournament that will determine the eighth and final seed in the Western Conference playoffs.

This marked the first time in franchise history that two Grizzlies had triple-doubles in the same game. The team effort helped the Grizzlies bounce back after losing six of their first seven games since the NBA returned from a 4½-month layoff.

"I'm happy that we responded," said Valanciunas, who had 26 points, 19 rebounds and 12 assists. "We showed character. We're not going home. We're going to fight until the last second."

Morant finished with 12 points, 13 rebounds and 10 assists as Memphis never trailed while capitalizing on the fact Milwaukee was missing Giannis Antetokounmpo. The reigning MVP was serving a one-game suspension after head-butting Moritz Wagner in a 126-113 victory over the Washington Wizards on Tuesday.

The Grizzlies (34-39) are tied for eighth place in the Western Conference with Portland and Phoenix, which beat Dallas 128-102 on Thursday.

Phoenix 128, Dallas 102: Devin Booker scored 27 points and the Suns rolled past the Mavericks to keep their playoff hopes alive and finish as the only unbeaten team in the restart. Dario Saric scored 16 points and Cameron Payne and Cameron Johnson each added 15 for the Suns.

Utah 118, San Antonio 112: The Spurs' record-tying run of 22 consecutive playoff appearances ended when the Jazz eliminated them from contention for a spot in the Western Conference play-in series. Rayjon Tucker led Utah with 18 points.

Portland 134, Brooklyn 133: Damian Lillard sent the Trail Blazers into the NBA's first play-in series with 42 points and a crucial steal in a win over the Nets, securing the No. 8 seed in the Western Conference.

Sacramento 136, L.A. Lakers 122: Buddy Hield scored 28 points, including a three-pointer that capped the Kings' streak of 11 consecutive baskets made in the third period, to beat the Lakers. Los Angeles held out most of its starters to rest them for the playoffs.

Orlando 133, New Orleans 127: Nikola Vucevic scored 23 points on 10-for-11 shooting from the field and the Magic tuned up for the postseason by beating the Pelicans to end a five-game skid.

Washington 96, Boston 90: Thomas Bryant had 26 points and nine rebounds to help the Wizards beat the Celtics for their lone victory in the restart.