NEW YORK -- Denard Span decided during warmpus that the tightness in his back was tolerable and he would give playing a shot.
He felt a whole lot better when he was running out the go-ahead, infield single in the 11th inning.
Scratched from the lineup the previous night because of his back, Span had three hits and two RBI in the Washington Nationals' 5-4 victory Wednesday that ended the New York Yankees' seven-game winning streak.
"Get on my horses. We need a win, and we're ready to get on an airplane," Span said. "So I just dug deep and tried to get to first."
Span's hustle helped the banged-up Nationals win for only the third time in 12 games.
After the game, Yankees manager Joe Girardi said closer Andrew Miller will go on the disabled list because of a strained forearm muscle, an injury that pushes setup man Dellin Betances into a ninth-inning role.
Miller won't pick up a ball for 10 to 14 days.
"I think it was one of those things that was building," Miller said. "It hasn't been recovering quite like I wanted it to, so it's frustrating more than anything for me."
Tyler Moore led off the 11th with a single off Chris Capuano (0-4) and advanced on Jose Lobaton's sacrifice and Danny Espinosa's tapper back to the mound. Span then hit a high chopper up the middle. Second baseman Stephen Drew fielded the ball as he crossed second base but Span beat the one-hop throw.
"That's not an easy transition you want on your first day back," manager Matt Williams said. "We need him. He's an important part of our club."
Alex Rodriguez had a tiebreaking double to end a 0-for-11 drought in a four-run seventh that put New York up 4-2. Brendan Ryan, who came off the 60-day disabled list, had a one-out RBI triple to chase Gio Gonzalez after 6 1/3 sharp innings.
Brett Gardner's RBI double off Felipe Rivero tied the score 2-all, and Rodriguez and Brian McCann had run-scoring hits off Aaron Barrett. McCann's single bounced off second base and over a perfectly positioned fielder.
After Yunel Escobar singled to open the eighth, Girardi replaced Nathan Eovaldi with Lindgren, the first pitcher Harper ever faced in professional baseball who was younger than the Washington star. Harper, who made his major league debut as a 19-year-old and is 7 months older than Lindgren, flied out to left.
Lindgren then got a forceout before Taylor homered the opposite way to right field.
"Just trying to put the barrel on the ball," Taylor said. "In a situation like that it's easy to try to do too much."
No. 9 batter Espinosa doubled with two outs in the third for Washington's first hit and scored on Span's double. Espinosa homered in the fifth for a two-run lead.
Eovaldi, remained winless in interleague play -- he's 0-4 in 12 career starts. He yielded three runs and eight hits in seven-plus innings.
Yankees: RHP Ivan Nova (Tommy John surgery) was at Yankee Stadium before the game to throw a bullpen. He'll next make a rehab start for Triple-A Scranton/Wilkes-Barre on Saturday. Girardi said Nova should be able to throw 85-90 pitches. ... CF Jacoby Ellsbury (sprained knee) will make the road trip with New York then remain in Florida after the two-game series in Miami that ends Tuesday. Girardi said Ellsbury, on DL since May 20 will not play in rehab games "right away."
Yankees: After an off day, the Yankees open a three-game series at Baltimore. RHP Michael Pineda (7-2) is set to start after his last turn in the rotation was skipped in order to manage his innings this year.
Following the game, the Yankees optioned infielder Jose Pirela to Triple-A Scranton/Wilkes-Barre.
Harper went 1 for 4 and has reached base in 29 of the Nationals' 30 road games this year.
Ahead of non-tender deadline, Houston Astros offer contract to shortstop Carlos Correa, others
The Houston Astros on Wednesday offered contracts to arbitration-eligible shortstop Carlos Correa, infielder Aledmys Diaz and right-hander Lance McCullers Jr.
Which big names were cut loose at MLB's non-tender deadline?
World Series hero Kyle Schwarber is no longer with the Cubs. Here's a look at others who have hit the open market.
Los Angeles Angels add Jose Iglesias in deal with Baltimore Orioles
The Angels acquired veteran shortstop Jose Iglesias from the Orioles in a trade for minor league pitchers Garrett Stallings and Jean Pinto.
Chicago Cubs make Kyle Schwarber a free agent, tender contract to Kris Bryant and others
The Cubs non-tendered 2016 World Series hero Kyle Schwarber on Wednesday, making him a free agent after six seasons in Chicago, while tendering a contract to 2016 National League MVP Kris Bryant and others.
Atlanta Braves non-tender Adam Duvall
The Braves have non-tendered veteran outfielder Adam Duvall, making him a free agent, sources told ESPN.
Tampa Bay Rays' top pick Nick Bitsko has surgery on right shoulder
Nick Bitsko, the 18-year-old pitcher whom the Rays took in the first round of this year's draft, underwent surgery to repair the labrum in his right shoulder.