CHICAGO — Tommy Joseph and Cesar Hernandez homered to back Jerod Eickhoff, and the struggling Philadelphia Phillies beat the Chicago White Sox 5-3 on Wednesday night.

Philadelphia showed some spark at the plate and on the mound after getting outscored a combined 18-1 over the previous two games against St. Louis and Chicago. The Phillies came away with the win after dropping five of seven and salvaged a two-game split in their first trip to Chicago's South Side since 2004.

Joseph and Hernandez both had two hits and went deep against James Shields (5-16). Aaron Altherr added two RBI singles.

Eickhoff (9-12) did his part, allowing two runs and four hits over six innings.

Jeanmar Gomez worked the ninth for his 34th save in 38 chances. He gave up an RBI single to Avisail Garcia before Dioner Navarro grounded out with runners on first and third to end the game.

Sign up for the Newsletter

Get the best of delivered to your inbox every day.

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)