David Wright punched a game-winning, bases loaded RBI single into shallow right field off of Jonathan Papelbon as the New York Mets rallied for two runs in the bottom of the ninth, beating the Philadelphia Phillies 6-5 on Wednesday night.

The Mets came from behind three times on the night to take the rubber game of the series, overcoming a less than average outing from R.A. Dickey - 11 hits and five earned runs over seven innings.

Ike Davis started the ninth inning rally with an opposite field double off of Papelbon (2-3), setting up the Philly closer's second blown save. Josh Thole sacrificed pinch-runner Ronny Cedeno to third, but Kirk Nieuwenhuis struck out, leaving a runner on third with two outs.

Jordany Valdespin was hit by a pitch (on ball four) and Ruben Tejada walked to load the bases for Daniel Murphy's game-tying laser beam up the middle. If the hot shot grounder hadn't bounced off Papelbon's foot and into foul territory, it likely would have made it the through the infield to score the tyring and winning runs. But Wright capped the comeback with his third hit and fourth RBI of the night.

The Mets third baseman had already put his team ahead earlier in the game, taking Cole Hamels over the left field wall in the fifth inning for a two-run blast, making it 4-3 New York.

Hamels - who gave up four runs in seven innings -  helped his own cause in the next half inning with a single, ahead of Jimmy Rollins' RBI triple, his third hit of the game. He scored on a safety-squeeze, sac-bunt from Juan Pierre to make it 5-4 Phillies.

Bobby Parnell (2-1), who has been filling the closer's role with Frank Francisco on the DL, picked up the win, pitching a scoreless ninth.