BALTIMORE (AP) -- John Ryan Murphy had the Yankees' only hit in a three-run fifth inning, and New York defeated the Baltimore Orioles 5-3 Sunday to salvage the finale of a three-game series.

New York Yankees' John Ryan Murphy hits a double to drive in two runs against the Baltimore Orioles during the fifth inning (AP Photo/Nick Wass)

Mark Teixeira drove in a run and scored one to help the first-place Yankees end Baltimore's six-game winning streak.

Dellin Betances, filling in for injured closer Andrew Miller, worked around a walk in the ninth for his third save.

Nolan Reimold had two RBIs for the Orioles, who managed only six hits after scoring 20 runs on 31 hits in their previous two games. Baltimore was seeking a seventh straight win for the first time since 2005.

The Yankees trailed 3-2 before rallying in the fifth. Orioles rookie Mike Wright (2-2) issued three straight walks - all on 3-2 pitches - to load the bases and Brian Matusz walked Garrett Jones with the count full to force in a run. Two outs later, Murphy hit a two-run double off the glove of third baseman Manny Machado.

Murphy, New York's backup catcher, got three hits to raise his batting average 42 points to .250. He entered the game with four extra-base hits and three RBIs.

Matusz was pitching for the first time since May 31 after serving an eight-game suspension for using a foreign substance while on the mound.

New York starter Adam Warren was pulled with two outs in the fifth and replaced by Chasen Shreve (3-1), who went 1 1-3 innings.

Justin Wilson got six consecutive outs before turning it over to Betances.

Yankees designated hitter Alex Rodriguez went 0 for 4 with a walk to remain five hits short of 3,000 for his career.

Teixeira drove in a first-inning run with an opposite-field double that hit the chalk in deep left. Reimold answered with a two-run single in the bottom half.

Three singles and a sacrifice fly by Brett Gardner tied it in the second.

Warren retired eight straight before Reimold walked to open the fourth and scored on a double by Caleb Joseph.


Yankees: RHP Ivan Nova (elbow) pitched six innings for New York's Triple-A affiliate in his second rehab start Saturday. "The report on him is that he threw OK," Yankees manager Joe Girardi said. "His velocity was decent. His curveball maybe wasn't quite as sharp as we've seen it."


Yankees: Rodriguez heads home to Miami, where New York will play a two-game series that begins Monday night. Masahiro Tanaka (4-1) starts for the Yankees.

Orioles: Wei-Yin Chen (2-4, 3.21 ERA) starts against the Philadelphia Phillies in an interleague clash at Camden Yards.

(© 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)