Freddy Galvis hit a game-ending homer with one out in the ninth inning to lift the Philadelphia Phillies to a 6-5 win over the Atlanta Braves on Saturday night. Atlanta had trailed 5-3 going into the ninth but Andrelton Simmons hit a two-out two-run homer off Jonathan Papelbon (5-1) who blew his seventh save in 32 opportunities. Galvis who had four hits got Papelbon the win by connecting on a 1-0 pitch from Freddy Garcia (0-1) into the seats in right field. It was the first four-hit game for Galvis who had been 0-for-7 since being recalled from Triple-A Lehigh Valley on Sept. 3. It was his fifth homer of the season. Carlos Ruiz singled doubled and drove in three runs and Cesar Hernandez and Kevin Frandsen each had three hits for the Phillies. Freddie Freeman had two hits and two RBIs for NL East-leading Atlanta which dropped its third straight. Kyle Kendrick was in line for the victory before the ninth. Kendrick who had lost a career-high tying four-game losing streak retired the first six Braves before scuffling in the third inning. Freeman’s two-run double staked Atlanta to a 2-0 lead. The Phillies tied it in the bottom of the inning on Ruiz’s two-run single. And Ruiz’s fifth-inning double put Philadelphia ahead 3-2. Galvis also had an RBI single in the fifth to give the Phillies a two-run advantage.