PHILADELPHIA -- A.J. Burnett pitched seven strong innings to snap a personal six-game losing streak on Monday night, as the Philadelphia Phillies beat the Washington Nationals 3-2.

Third baseman Cody Asche and catcher Carlos Ruiz homered for Philadelphia, which won for the fourth time in its last five games.

Third baseman Anthony Rendon and catcher Wilson Ramos hit solo homers for the Nationals, who lost for just the second time in 14 games.

Burnett, whose losing streak equaled the longest of his career, allowed one run and three hits while striking out a season-high 12. Now 7-14 this season, he earned his first victory since July 11, when he also beat Washington.