Cole Hamels finally got some help from his teammates on Thursday. The Philadelphia lefty pitched seven innings for just his third win of the season and his teammates pounded out 14 hits as the Phillies beat the Pittsburgh Pirates, 6-4, at PNC Park. It was a rare win for Hamels (3-11), who came into Independence Day leading the major leagues in losses. It was a rare show of run support for the southpaw, who has received only 22 runs of support in his 11 defeats. Hamels held the Pirates (52-32), who have the best record in the majors, to two runs — one earned — and seven hits in seven innings. He struck out eight and allowed no walks. The Phillies (41-45) avoided falling to a season-worst six games under .500 with just their 10th win in their past 25 games. They also won a series at PNC Park for the first time since 2008. Pittsburgh lost for the second time in three games since a nine-game winning streak. Ben Revere had three hits and two RBIs for Philadelphia. The Phillies tallied 14 hits, including two each by Chase Utley, Jimmy Rollins, Delmon Young and Carlos Ruiz. Ruiz had the big hit, a two-run single during a four-run sixth inning that put the Phillies up 5-2. Jonathan Papelbon pitched a scoreless ninth inning for his 17th save. Gerrit Cole (4-1) suffered his first major-league loss after winning his first four starts. He allowed three runs and eight hits in 51/3 innings, with one walk and five strikeouts.