Kevin Durant scored 27 points and the visiting Oklahoma City Thunder held off a late San Antonio comeback to move within one win of advancing to the NBA Finals.

Russell Westbrook added 23 points and James Harden scored 12 of his 20 points in the fourth quarter, including a huge 3-pointer with 28.8 seconds left, to give the Thunder their third straight win and a 3-2 lead in the series.

Oklahoma City can become only the 15th team to rally from a 2-0 deficit to win a best-of-seven series when they host the Spurs in Game 6 on Wednesday night.

Manu Ginobili, making his first start of the playoffs, scored a season-high 34 points for San Antonio, which has lost three consecutive games for the first time this season.

Tony Parker scored 20 points and Tim Duncan had 18 points and 12 rebounds for the Spurs, who had won their first 10 playoff games before Oklahoma City turned the tide.

Durant and Westbrook combined to score 17 points as the Thunder closed the third quarter on a 20-5 run to take an 81-72 lead into the final 12 minutes.

A four-point play by Harden pushed the Thunder's lead to 101-88 with 5:17 to play, but Stephen Jackson buried a 3-pointer and Duncan scored six straight points in a 10-0 spurt to bring the Spurs within 101-99 with 1:54 remaining.

Harden delivered another huge basket with a step-back 3-pointer to make it 106-101 with 28.8 seconds left, but Ginobili answered with a layup six seconds later and the Spurs forced a turnover to regain possession with 15.5 seconds to go.

Ginobili's deep tying 3-point attempt was off the mark and Durant buried a pair of free throws to clinch it.

GAME NOTEBOOK: Ginobili replaced Danny Green, who averaged five points and shot 4 of 21 from behind the arc in the first four games of the series. ... Serge Ibaka, who led the league in blocked shots and scored a career-high 26 points in Game 4, had to go to the bench after picking up two fouls in the first 45 seconds of the game. Nick Collison came in and scored six early points, the first time he's made three first-quarter field goals in his playoff career. ... Thunder G Daequan Cook scored eight points in 84 seconds in the second quarter. He had just two points in the first four games.