New York trailed 4-3 in the ninth before Travis Hafner homered with one out on a 3-1 pitch from Jim Johnson, who has blown three straight save opportunities after converting a franchise-record 35 in a row. All three of those botched saves have come during Baltimore's current skid.
Hafner added an RBI single in the 10th inning for the Yankees, who have won 10 of 13 to move a season-high 12 games over .500 (28-16). The Yankees also improved to 19-0 when scoring first this season.
Robinson Cano hit his team-high 13th home run in the first inning for New York, David Adams clubbed his first major-league homer in the second and Lyle Overbay connected in the seventh.
In the 10th, Ichiro Suzuki led off with a double off Pedro Strop (0-2) and Wells followed with an RBI double to left. Hafner's two-out single made it 6-4.
David Robertson (3-0) worked the ninth and Mariano Rivera got three straight outs for his 17th save in 17 tries.
INDIANS 10, MARINERS 8, 10 innings
CLEVELAND (AP) — Yan Gomes hit a three-run homer in the 10th inning and the Indians, twice revived by Seattle's fielding errors, beat the Mariners to complete a four-game sweep of the Mariners.
Gomes, who also homered in the second, drove a 3-2 pitch from Charlie Furbush (0-3) over the wall in left, giving the Indians their fifth straight win and third walk-off over the Mariners in four days. As Gomes reached the plate he was mobbed by his teammates following an improbable win that came after Cleveland's bullpen gave up homers in three consecutive innings.
It was the Indians' first four-game sweep of Seattle since 1981, and the comeback gave Cleveland its 18th win in 22 games.
Joe Smith (2-0) won despite giving up a go-ahead homer to Justin Smoak in the 10th.
BLUE JAYS 7, RAYS 5
TORONTO (AP) — R.A. Dickey won his second straight start, Edwin Encarnacion hit a tiebreaking, bases-loaded double in the seventh inning, and the Blue Jays beat the Rays.
Dickey (4-5) allowed three runs — two earned — and four hits in a season-high eight innings as the Blue Jays won their fourth straight home game. The reigning NL Cy Young Award winner walked four and struck out five.
Casey Janssen gave up a two-run homer to former Toronto shortstop Yunel Escobar in the ninth. Booed by the crowd of 29,885, Escobar made a safe sign as he crossed the plate, prompting more jeers.
Desmond Jennings followed with a single and Matt Joyce walked, bringing the potential go-ahead run to the plate, but Janssen struck out Ben Zobrist on three pitches to end it.
Encarnacion doubled in the seventh after Josh Lueke (0-1) walked the bases loaded around a sacrifice and a flyout. Encarnacion's hit off the left-field wall ricocheted past outfielder Sam Fuld.
WHITE SOX 6, RED SOX 4
CHICAGO (AP) — Adam Dunn hit a three-run homer in the first inning and the White Sox handed Jon Lester his first loss of the season with a victory over the Red Sox.
Alejandro De Aza and Alexei Ramirez added consecutive RBI doubles in the second as Chicago took advantage of an ineffective Lester (6-1) to earn its fifth win in seven games in the opener of an eight-game homestand. The White Sox scored each of their runs with two outs.
Jarrod Saltalamacchia hit a two-run homer for the Red Sox, who had won five in a row. Saltalamacchia made a bid for a second two-run shot, but Dayan Viciedo brought in his drive on the warning track in left-centre with the White Sox clinging to a 6-4 lead in the seventh.
While Lester struggled, Dylan Axelrod (2-3) pitched six effective innings to win his second straight start. The right-hander, who could lose his spot in the rotation when John Danks comes off the disabled list, gave up two runs and four hits.
ASTROS 6, ROYALS 5
HOUSTON (AP) — Matt Dominguez hit a three-run homer and Jason Castro added a solo shot to give the Astros a win over the Royals.
The Astros trailed by one in the fourth inning before Dominguez launched his fourth homer of the season into the Crawford Boxes in left field to give Houston a 6-4 lead.
Castro's homer came in Houston's two-run third inning before Kansas City took the lead on a three-run home run by Miguel Tejada in the fourth. It was his first homer since 2011.
Houston's Dallas Keuchel (1-1) allowed nine hits and four runs while striking out six in 6 2-3 innings for the win. Closer Jose Veras struck out two in a perfect ninth for his seventh save.
Kansas City starter Jeremy Guthrie (5-2) allowed eight hits and a season-high six runs in five innings — his shortest start of the season.
ATHLETICS 9, RANGERS 2
ARLINGTON, Texas (AP) — Seth Smith homered and scored three times, Bartolo Colon pitched seven strong innings for his first win in nearly a month and the Athletics beat the Rangers.
Colon, who turns 40 on Friday, gave up two runs on six hits and struck out three. It was the first win for Colon (4-2) since April 23 at Boston.
Coco Crisp got three hits, and had the first of three straight Oakland doubles in a four-run fifth inning that broke a 1-1 tie. He scored when Yoenis Cespedes hit a line drive just over Adrian Beltre's head with the third baseman playing in, and Cespedes came home on Brandon Moss' line drive to the wall in right.
Josh Lindblom (0-1) lost in his 2013 debut and first major league start.