NEW YORK — When the ball went up, Brian McCann thought it was the second out of the inning. And when it came down, the Yankees had a three-game sweep.
Jacoby Ellsbury got four hits and scored the winning run in the ninth on McCann’s pop single that dropped near three Cincinnati Reds in shallow right field, giving New York a 3-2 victory Sunday.
‘‘I’ll take it, for sure,’’ McCann said with a laugh. ‘‘I saw that everybody was looking at each other. So there was a chance, and luckily for us it fell.’’
Ellsbury and Derek Jeter each had an RBI single in the fifth inning for the Yankees. Hiroki Kuroda outpitched Cincinnati ace Johnny Cueto and left with a 2-1 lead before Todd Frazier’s tying homer off Dellin Betances in the eighth.
Ellsbury also stole two bases and made a sliding catch in center field that saved a run.
‘‘He can do anything on the baseball field. He showed all his tools today. He does this on a nightly basis,’’ McCann said.
Ellsbury reached safely all five times up, including a leadoff single in the ninth against Aroldis Chapman (0-3). Before that, lefthanded hitters had been 1 for 18 with 12 strikeouts against the hard-throwing lefty this season.
Ellsbury got a great jump and swiped second without a throw. He reached third on a wild pitch before Chapman struck out Mark Teixeira with a 101-mile-per-hour fastball.
McCann, another lefthanded batter, lifted a pop-up that barely reached the grass behind first base. But with the infield playing in, Frazier and second baseman Skip Schumaker scurried back trying to get under the ball as Jay Bruce rushed in from right field.
‘‘It is anybody’s ball,’’ Frazier said. ‘‘If you can get to it, it is your ball.’’
All three appeared to have a hard time finding it in the air, however, and the ball landed untouched. Ellsbury alertly saw what was happening and dashed home easily as McCann stood on first base with his arms raised.
‘‘You don’t see that too often,’’ Ellsbury said. ‘‘It’s just a read that you have to make pretty quick.’’
Chapman stared out toward shallow right field, where Frazier, Schumaker, and Bruce were practically frozen in disbelief.
‘‘Just one of those things — I thought I was under it and I was not,’’ Frazier said. ‘‘By the time the ball was coming down it was already too late so, I made a mistake, turned my body the wrong way and, one of those things where I should have caught it.’’
Center fielder Billy Hamilton had trouble with the sun earlier, as Ellsbury’s seventh-inning fly fell for a double.
David Robertson (1-2) pitched a perfect ninth.
It was the fifth game-ending hit for McCann — his first since a homer for Atlanta against Houston May 17, 2011.
Kuroda, 39, gave up three hits and no earned runs over 6⅔ innings in his 200th big league appearance.