BALTIMORE (AP) Gary Sanchez hit a three-run homer in the ninth inning to cap a New York rally fueled by Baltimore gaffes, and the Yankees pulled out a 10-7 victory Monday night.

Gleyber Torres homered twice for the Yankees, who trailed 6-1 after four innings and 7-3 after six.

At that point, the Orioles fulfilled their stature as the team with the worst record in the AL. They threw to the wrong base, missed popups and were outscored 7-0 over the final three innings.

New York scored in the seventh on an overthrow by left fielder Dwight Smith Jr., who fell for a fake tag-up on third base. In the ninth, right fielder Joey Rickard threw to the wrong base on a single, Smith heaved the ball past the plate on Aaron Hicks' tying sacrifice fly, catcher Pedro Severino misjudged a foul pop that preceded a two-out walk to Luke Voit and Sanchez connected off Mychal Givens (0-1).

Zach Britton (2-0) worked the eighth and Aroldis Chapman got three outs for his 12th save, ending by striking out Jonathan Villar with a 101 mph fastball.

New York's third straight comeback win, sandwiched around a defeat on Saturday, was led by Torres. The shortstop is 17 for 35 against the Orioles with three multihomer games, and eight of his 10 home runs have come against Baltimore. Sanchez hit seven of his 13 versus the Orioles, who have allowed a major league-leading 97.

Hanser Alberto and Renato Nunez homered for the Orioles. Subbing in the leadoff spot for the slumping Villar, Alberto moved within a triple of hitting for the cycle by the fourth inning. He doubled in the first, added his third home run in the third and added an RBI single in the fourth.

After hitting a fly ball in the sixth, Alberto got his career-high fourth hit before Villar entered as pinch runner.

Voit aided the Orioles when he allowed Trey Mancini's foul pop to drop near first in the sixth inning and Mancini followed with a sacrifice fly.

Yankees starter J.A. Happ allowed six runs and a pair of solo homers in 3 2/3 innings, but New York's comeback got him a no-decision. In four starts against Baltimore this season, the lefty has a 7.79 ERA. He has given up 13 homers in 10 starts.

ROAD TRIP

Mechanical issues with the Yankees' plane to Baltimore following a home weekend series against Tampa Bay forced the club to call an audible, with most of the team making the trip down the I-95 corridor Sunday by bus.

''Myself and a few coaches ended up taking a train down,'' manager Aaron Boone said. ''I think the bus ride was another one of those of those bonding experiences that guys have as players. It was fun talking to some of the veteran guys today about how much they had fun just spending time with each other harkening back to some minor league days.''

TRAINER'S ROOM

Yankees: SS Didi Gregorius played five innings of defense and went 2 for 4 with a walk at extended spring training in his first game action since Tommy John surgery on Oct. 17. . 3B Miguel Andujar underwent season-ending surgery to repair a right labrum tear. ... RHP Dellin Betances (right shoulder) continued his throwing program Monday, extending his throwing to 105 feet from flat ground. . OF Giancarlo Stanton (left shoulder) began his rehab assignment by hitting a solo home run for Class A Tampa on Monday night, his first game action since March 31. . SS Troy Tulowitzki (left calf), sidelined since April 3, resumed on-field batting practice Monday and continued taking grounders at shortstop and third base. . Boone said there is will be no timetable for RF Aaron Judge's return (left oblique) until he begins swinging a bat. So far he's only been running and playing catch.

Orioles: RHP Nate Karns (right forearm strain) was moved to the 60-day IL to make room on the 40-man roster for RHP Josh Lucas, whose contract was selected from Triple-A Norfolk. This is Lucas' second stint this season with Baltimore. ... DH Mark Trumbo, who's recovering from right knee surgery, ''is progressing and doing well'' while participating in extended spring training, manager Brandon Hyde said, adding that Trumbo ''could be off on a rehab assignment pretty soon.''

UP NEXT

Yankees: RHP Domingo German (8-1, 2.50 ERA) seeks to win his sixth consecutive start on Tuesday night in the second game of the series. He could join Tommy John (1979), Herb Pennock (1926) and Jack Chesbro (1904) as the only Yankees to earn nine wins by the end of May.

Orioles: Rookie Davis Hess (1-5, 5.58) has gone seven straight starts without a victory, losing twice to the Yankees during that span.

---

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports

Comment about su00e1nchez homer caps yankees comeback in 10 7 win over orioles