NEW YORK — Jacoby Ellsbury hit a two-run home run in the fifth inning and the New York Yankees ended a five-game home losing streak with a 4-3 victory over the Cincinnati Reds on Friday night in the opener of a 10-game homestand.

The Yankees improved to 19-23 at home by getting production from their three big offseason additions to the lineup as center fielder Ellsbury, designated hitter Carlos Beltran and catcher Brian McCann were a combined 5-for-12 with four RBIs.

Shortstop Derek Jeter also had two hits giving him 3,410 for his career, moving him nine behind Carl Yastrzemski for seventh place on the all-time list.

Ellsbury gave the Yankees the lead for good with nobody out in the fifth when he drove a 1-1 pitch from Cincinnati right-hander Mike Leake (7-8) over the right field wall for his seventh home run of the season.

Before Ellsbury's home run, McCann had a two-out RBI double in the first and Beltran had a two-out run-scoring single in the third.

Ellsbury's home run stood up because New York pitching worked through three errors. After errors in the fourth by second baseman Brian Roberts and Jeter, right-hander David Phelps (4-4) struck out designated hitter Ryan Ludwick and retiring first baseman Brayan Pena.

Pena hit two solo home runs off Phelps, who allowed three runs (two earned) and six hits in 6 1/3 innings. Phelps struck out seven, walked two and threw 65 of 98 pitches for strikes.

Dellin Betances worked around his throwing error on a pickoff play at first and stranded left fielder Chris Heisey on second by getting two strikeouts in the seventh and two more in the eighth. David Robertson pitched a scoreless ninth for his 24th save.

Other than Pena's first career multi-home run game, the rest of the Reds struggled while falling to 16-8 since June 20. Leadoff man Billy Hamilton, third baseman Todd Frazier and right fielder Jay Bruce were a combined 0-for-11 with five strikeouts.

Leake allowed four runs and eight hits in seven innings.

After Phelps retired the side on 13 pitches, the Yankees took a 1-0 lead on McCann's double that scored left fielder Brett Gardner, who was hit by a pitch.

The Reds tied in the third inning when Pena drove the first pitch from Phelps over the right field fence for his fourth home run of the season even as right fielder Ichiro Suzuki scaled the entire portion of the wall.

New York regained the lead with two outs in the bottom of the third on an RBI single by Beltran. The Yankees pulled off a double steal by Ellsbury and Beltran, but Suzuki grounded out.

The Reds tied it again in the fourth by capitalizing on errors by Roberts and Jeter. Roberts had a ground ball by Frazier go off his glove and Jeter misplayed a grounder by catcher Devin Mesoraco, allowing shortstop Zack Cozart to score.

Notes: The Yankees said LHP CC Sabathia will undergo season-ending knee surgery on Wednesday. The surgery will be to clean up inflammation in his right knee and will be performed by Los Angeles Dodgers team doctor Neal El Attrache. … The Yankees announced that SS Derek Jeter will be honored in a ceremony before their game with the Kansas City Royals on Sept. 7. … Cincinnati INF Skip Schumaker remained on the seven-day concussion disabled list after thinking he would be able to return. … RHPs Mat Latos and Homer Bailey threw bullpen sessions without problems and are expected to make their next scheduled starts when the Reds head to Milwaukee. Latos left last Friday's game with lower back spasms and Bailey departed his last outing on July 10 with a slightly sprained right knee.