BALTIMORE — For five innings, Orioles rookie Tyler Wilson matched zeros with New York Yankees veteran CC Sabathia.
Then things got real ugly in the sixth.
Wilson gave up three runs in the pivotal inning, the last on a throwing error, and the Yankees went on to end a six-game losing streak with a 7-0 victory Wednesday night.
Sabathia (2-2) allowed six hits, walked two and struck out six over seven innings. The 35-year-old lefty got the best of Wilson, who took a one-hitter into the sixth before coming unglued.
Jacoby Ellsbury hit a one-out single, stole second, advanced to third on a single by Brett Gardner and scored on a sacrifice fly by Carlos Beltran. Brian McCann followed with a two-out RBI single, and another run scored when Wilson threw wildly on a dribbler between the mound and home plate.
"They hit some good pitches," Wilson said. "Obviously, that's a veteran lineup and they're going to make you earn every bit of it, every step of the way. I look back on it and try and learn from everything that happened, and we'll do that moving forward."
New York added four runs in the eighth against the Baltimore bullpen.
Sabathia, meanwhile, turned in his best performance of the season at a time when New York desperately needed a victory.
After giving up three runs in each of his first four starts, Sabathia craftily used a variety of off-speed pitches to earn his first win in nine tries at Camden Yards since 2011.
"The changeup was good, the two-seamer was good," he said. "It was just making pitches when I need to."
Sabathia retired the side in order only once — in his final inning — but permitted just one runner past second base.
"His velocity is obviously not where it used to be, but he knows how to pitch," Orioles slugger Chris Davis said. "You don't stay in this game that long not knowing how to pitch."
Ellsbury went 3 for 3 with two walks for the last-place Yankees (9-16).
"Something like this can get a team going," manager Joe Girardi said. "Hopefully it does."
Before the game, the Yankees put designated hitter Alex Rodriguez on the 15-day disabled list with a strained right hamstring. Despite a .194 batting average, A-Rod started the day tied for the team lead with 12 RBIs.
That's a tough loss for a struggling offense. In this game, however, one run was enough.
Despite allowing a hit in each of the first five innings, Sabathia kept the game scoreless. After Baltimore put runners on the corners with one out in the fifth, he struck out rookie Joey Rickard and retired Manny Machado on a liner to center.
Sabathia was backed by three double plays and an offense that came into the game tied for last in the AL with 82 runs.
"We had some tough losses, and to be able to come out here tonight and get a win and score some runs felt good," Sabathia said. "We needed a win. It's been a tough start to the season for us, so hopefully we'll get on a little roll now."
Yankees: New York will get a better idea of how long Rodriguez will be out when team doctor Christopher Ahmed examines him and the MRI. "I'm going on the DL, so it's serious enough," A-Rod said.
Orioles: Closer Zach Britton is closer to recovering from a jammed left ankle, but it will likely be several days before he returns. "He's worth waiting on. We'll take it day to day," manager Buck Showalter said.
Yankees: Masahiro Tanaka (1-0, 2.87 ERA) makes his sixth start of the season in the series finale. He's allowed two runs in each outing.
Orioles: Kevin Gausman (0-1, 2.45) seeks his first win of the season in his third start since coming off the DL. He had been sidelined with a shoulder injury.