COLUMBIA, S.C. — Eric Smith scored 12 points, including the game-winning 3-pointer with 25.1 seconds left, as South Carolina upset Ole Miss 63-62 in Southeastern Conference men’s basketball Wednesday night.

The Rebels (19-7, 8-5) led 62-56 with five minutes to go, but missed their last seven shots in a devastating loss for their NCAA tournament hopes.

South Carolina (13-13, 3-10 SEC), which began the night tied for last place in the SEC with Mississippi State, broke a six-game losing streak.

Ole Miss had two chances to win at the end, but Lakeem Jackson blocked Nick Williams’ layup with 0.9 seconds left and Marshal Henderson’s desperation 3-pointer was blocked by Laimonas Chatkevicius.

Murphy Holloway led the Rebels with 19 points and 13 rebounds.

Kentucky 74, Vanderbilt 70: In Lexington, Ky., Willie Cauley-Stein scored 20 points, and his two crucial blocks and key rebound in the final 34 seconds helped Kentucky (18-8, 9-4) outlast Vanderbilt.

Cauley-Stein, a 7-foot freshman, blocked attempts by Kyle Fuller and Kedren Johnson nine seconds apart before grabbing Johnson’s missed 3-pointer with 17 seconds left and drawing a foul.

Cauley-Stein made 1 of 2 free throws for 74-67 lead that offset Sheldon Moats’ 3-pointer for Vanderbilt (10-15, 4-9) with three seconds remaining.

Alabama 64, Mississippi State 56: In Tuscaloosa, Ala., Rodney Cooper had 20 points and 10 rebounds and Trevor Releford scored 17 for Alabama.

The Crimson Tide (18-8, 10-3) won its fourth straight.

Jalen Steele scored 15 points for the Bulldogs (7-18, 2-11). Colin Borchert had 14 points and nine rebounds.

Texas A&M 65, Auburn 56: In Auburn, Ala., Elston Turner scored 21 points and Alex Caruso added another 14 points in Texas A&M’s come-from-behind win.

Auburn opened the game with a 12-0 run through the first six minutes, but Texas A&M (16-10, 6-7) fought back to cut the Tigers’ lead to 31-29 by halftime. The Aggies closed the game on a 12-5 run over the final five minutes.

Allen Payne led Auburn (9-17, 3-10) with 11 points.