McCann homered among his career high-tying four hits and the Yankees bounced back to end a three-game losing streak, beating the Boston Red Sox 5-1 Wednesday night.

"It's just good to contribute," he said.

McCann homered a day earlier as the Yankees got battered by Boston, leaving them five games behind for the second AL wild-card spot. In the rematch with the last-place Red Sox, he drove in three runs and gave an early cushion to Hiroki Kuroda (10-8).

McCann has mostly been a disappointment with the Yankees, stuck in a season-long slump. A seven-time All-Star for Atlanta, he signed a rich free-agent deal with New York but hasn't hit much, prompting manager Joe Girardi to note before the game, "I think he expected more from himself."

"It took me longer to get going with the bat than normal," McCann agreed. "I haven't tried to dissect it."

McCann went 4-for-4 after opening the game hitting .237, 40 points below his career average.

Then again, nobody has really hit much among these longtime rivals. They began the day as the two lowest-scoring teams in the AL, and no one in either starting lineup was batting over .285.

Kuroda gave up one run and four hits in seven innings, striking out eight without a walk. He evened his mark at 78-78 in seven seasons for the Yankees and Dodgers.

Anthony Ranaudo (3-1) lost for the first time in his four starts since making his big league debut. Boston kept up its weeklong pattern of alternating wins and losses.

McCann connected for his 17th homer, a two-run shot in the second. The drive quieted Ranaudo's sizable cheering section. Raised in central New Jersey, he beat the Yankees last month in his first game.

"I was a little disappointed that we lost the game in general, that the team lost the game," Ranaudo said. "I wasn't really worried about my family or friends. It's great that they were here, that they support me and everything like that, but the team is definitely way more important."

McCann got four hits for the 11th time in his career, capped by an RBI single in the seventh. He's homered 15 times at home this year, and launched his latest shot to right field over the overshifted Boston defense.

Lately, he's even tried to bunt to beat the stacked right side.

"It looks like there's 12 guys out there," he said.

A day after bad baserunning dearly cost the Yankees, they tried a double steal in the first. Instead, Derek Jeter and Brett Gardner ran right into a double play.

Jeter was on second and Gardner was on first when they took off. Catcher Christian Vazquez targeted the trailing runner, trapping Gardner in a rundown. Second baseman Jemile Weeks suddenly zipped a throw across the diamond that caught Jeter straying off third, and third baseman Brock Holt's toss nailed Gardner at second.

The Red Sox weren't so swift around the bags, either.

Daniel Nava got picked off first by Kuroda, seeming incredibly nonchalant returning to the base. Moments earlier, Kuroda had looked back Nava without making a throw.

TRAINER'S ROOM

Red Sox: 2B Dustin Pedroia missed his fourth game in a row because of concussion-like symptoms. Manager John Farrell said Pedroia took early batting practice and passed an online test in his recovery. Farrell said he was "optimistic" Pedroia would play during Boston's upcoming homestand, which starts Friday night.

Yankees: INF-OF Martin Prado has temporarily been shut down because of a mild strain of his left hamstring. He was hurt Tuesday night, and Girardi said "hopefully it's just a day or two."

UP NEXT

Red Sox RHP Brandon Workman (1-8, 4.93 ERA) starts the series finale Thursday night against LHP Chris Capuano (2-3, 4.24). Capuano began the season with Boston and pitched 28 times in relief before being released. He later played in the minors for Colorado and joined the Yankees in late July.

THREE OF A KIND

Boston's 3-4-5 hitters -- David Ortiz, Yoenis Cespedes and Nava -- all began the game batting .263. The last time three teammates in a row had the same average this late in a season was Sept. 8, 2011, when Kansas City's Alex Gordon, Melky Cabrera and Billy Butler each were hitting .300, STATS said.

TALK IT OUT

Gardner and 3B umpire Tim Timmons talked for nearly a minute on the outfield grass during warmups before the top of the third. On Tuesday, Gardner was called out on strikes by Timmons and ejected for flipping his bat and slamming his helmet. Their day-after conversation was civil, but there were no smiles or laughs.