SAN DIEGO (AP) – This is a common thing for Freddie Galvis when he encounters his former team.

Galvis hit a big helmet, Travis Jankowski stole four bases and scored three times, and the San Diego Padres beat Philadelphia Phillies 9-3 on Sunday.

28-year-old Galvis spent his first six seasons with Philadelphia. He was sold to San Diego in December for right-hander Enyel De Los Santos.

Galvis was linked to Jake Arrieta in the third inning, hitting two exits from the center of his first career. It was his third homer in his last seven games and No. 8 in the season.

"I just tried to concentrate a little, when we had such situations and try to do everything possible," said Galvis. "Today I got a big blow, and I'm grateful for that."

Galvis is batting .455 with 10 hits, nine RBIs and four multi-headed games against Philadelphia this season, but he said he does not do anything different when faced with his former team.

"I treat these guys as a different team," said Galvis. "I guess I'm a professional."

San Diego won the last place for the fifth time in seven games, including two out of three against NL East-leading Philadelphia. Joey Lucchesi (6-6) struck out six of six scoreless innings.

"We play baseball, we do what we have to do, we play good defense, we're pitching and we're getting to the base," Galvis said.

Arrieta (9-7) allowed five runs and eight hits in five innings in her first loss since June 26. The winner of the NL Cy Young Award in 2015 was 4-0 with a 2.28 ERA in his previous seven starts.

"The first three innings were just weird," Arrieta said. "It is impossible to find it when I need it."

Yankovsky had two blows, and he walked twice. He became the eighth player in the franchise history to steal at least four bases in one game. Evert Cabrera was the last player to perform a feat in San Diego against San Francisco on September 30, 2012.

"He put pressure on them from the very beginning," Padres manager Andy Greene said. "The teams feel this, and the teams feel that someone comes to them the way he came to them today."

Jankowski singled, spent the second and scored on the grounder of Hunter Renfroe in the first. He singled out and again stole the second in the third, before hammering Gamwis' homer.

Jankowski also walked in the seventh and stole the second and third. He scored on the throwing error of third baseman Mikkel Franco, which makes him a 6-0 Padres.

Philadelphia rallied with three runs in the eighth, underlined by successive doubling of RBI for Nick Williams and Carlos Santana against Phil Mathon.

But San Diego answered three in the bottom half. Hey Jay Ellis had a sacrificial fly, and Eric Hosmer went on a run with a groundout.

Padres reliever Kazuhisa Makita pitched scoreless ninth after being recalled from Triple-A El Paso.

VIDEO PLAY

Padres catcher Austin Hedges was honored at home by Phillies shortstop Asdrubal Cabrera in the second. The game began with a pitch that got Jorge Alfaro, who handed Arrieta home. Arrieta rushed to Cabrera at second base, trying to catch Christian Villanueva, and Cabrera then chased Hedges and applied the tag before he could duck into the plate.

FOLLOWING

Phyllis: Go home to a series of two games against Boston starting Tuesday night. RHP Nick Pivetta (7-9, 4.51 ERA) is due to meet with Borin Bryan Johnson (3-3, 4.00 ERA).

Padres: LHP Clayton Richard (7-10, 5.13 ERA) plans to open a home game with three games against Los Angeles on Monday night.

Copyright 2018 Associated Press. All rights reserved. This material can not be published, transmitted, rewritten or redistributed.