MEMPHIS, Tenn. (AP) -- After playing in a first-half funk, the Memphis Grizzlies finally relied on better team basketball in the second half.
And Rudy Gay's 3-pointer with 23.9 seconds left put the finishing touch on the Washington Wizards .
Gay scored 27 points, including five in the final minute, to lift the Grizzlies to a 97-92 victory over the Wizards on Sunday.
"I think as the game went on, especially late in the fourth quarter, we finally made the right play," said guard Mike Conley, who added 17 points and six assists. "The play to Rudy at the end with the 3 was a prime example of the right play, and we finally made it."
Marc Gasol had 15 points and Zach Randolph added 13 for Memphis, which snapped a two-game losing streak. Randolph, Gay and Gasol had nine rebounds apiece, helping the Grizzlies to a 53-40 advantage on the boards.
"They are a physical team. They muck it up," Wizards coach Randy Wittman said. "They are very physical out front. There is a lot of bumping, grinding and fouling that makes them that way.
"We gave ourselves an opportunity, but we just couldn't make plays down the stretch."
John Wall led the Wizards with 25 points and six assists. Jordan Crawford finished with 22 points, and Kevin Seraphin had 12 points and 12 rebounds as Washington lost for the fifth time in the last six.
Washington committed 21 turnovers, including seven by Wall. Memphis committed 14 turnovers while shooting just 40 percent.
The Wizards trailed only 90-86 after Wall's layup with 46 seconds left. But Gay connected on the 3-pointer, and the Grizzlies hit their last four free throws, including a pair by Gay.
"It was just us playing team basketball," Gay said. "That's one thing about us, the way we've been playing. If they take away one thing, try the next option. If that option is taken away, we have another option for that."
Memphis was able to build its advantage in the third quarter and never trailed in the fourth, although Washington did pull even with 8:23 left on a dunk by Maurice Evans.
Washington carried a 48-45 lead into intermission after an ugly first half that involved poor shooting, poor ballhandling and little flow.
The Wizards shot better at 45 percent, but committed 10 turnovers. Memphis managed only 38 percent from the field and had seven turnovers.
"We were basically just trying to find our way," Gay said. "I didn't feel like we didn't know what we were doing. It was kind of like we were a step slow."
The difference for the Wizards in the first half was going 5 of 9 from outside the arc, including one from Crawford with 1.9 seconds left in the half, for Washington's halftime advantage.
Crawford had 16 points in the half, while Seraphin contributed 10 points and nine rebounds.
Memphis, which hit only 31 of 51 from the free throw line in Friday's overtime loss to the Toronto Raptors , struggled again, converting only 10 of 17 in the first half. They finished 27 of 37.
The Wizards were only 1 of 9 after halftime from outside the arc.
"We started off slow and a little sluggish," Conley said. "We were just over-thinking. I think we knew the plays were there, we just kind of didn't make the right passes at the right time."
Memphis began finally showing life in the latter stages of the third. Conley hit a trio of shots early in the period, but the Wizards still managed to hold a 61-58 lead on Wall's jumper with 5:29 left in the third.
But Memphis closed the period on a 16-5 run, outscoring the Wizards 29-18 in the period to carry a 74-66 lead into the fourth.
Washington used its bench to even at 80 with 8:23 left. But Memphis quickly went back ahead.
"We are getting better as a team," Wall said. "We just have stretches in the third or fourth quarter. We try to go 1-on-1, and that hurts us."
NOTES: The Wizards announced during the game that they have signed 6-foot-6 swingman Edwin Ubiles to a 10-day contract. Ubiles average 20.4 points with Dakota of the NBA D-League. .Washington F Rashard Lewis missed his 10th straight game with a sore left knee. .Gasol drew a technical in the first quarter arguing a no-call after he drove to the basket. .Memphis plays nine of its next 11 games on the road. .Memphis is now 13-3 against sub-.500 teams. ... Washington's road record dropped to 4-18. ... It marked the seventh consecutive home win for the Grizzlies in the series. Washington hasn't won in Memphis since Nov. 3, 2004. ... Wall is averaging 20 points and 8.8 assists in 11 games since the All-Star break.