BOSTON — Stephen Drew hit a two-run triple, David Ortiz had two hits and drove in a run and the Boston Red Sox beat the Oakland Athletics 6-5 on Wednesday afternoon to take a three-game series.

It was Boston’s ninth win in 12 games and came after a 13-0 loss to Oakland a night earlier.

Chris Young had a three-run homer and a solo shot for the Athletics, who finished a six-game road trip 1-5. They were swept at the Tampa Bay Rays over the weekend.

Ortiz is 8-for-16 since returning to the lineup on Saturday for the first time since last August. He missed 71 of the final 72 games last season and all of spring training’s with an Achilles tendon injury.

Jon Lester (4-0) got the win despite walking a season-high six and lasting just 5.2 innings. He allowed three runs on six hits, striking out five and walking two more than he had in his previous four starts.

Andrew Bailey struck out all three batters in the ninth for his fifth save.

It was Lester’s 89th career win, matching Babe Ruth for fifth in club history for left-handers.

Brett Anderson (1-4) was hit hard for the third straight start, giving up six runs on eight hits in four-plus innings. In his past three games, he’s been tagged for 17 runs in 10.2 innings.

The Red Sox broke a 3-3 tie and chased Anderson with a three-run fifth. Jacoby Ellsbury opened the inning with an infield hit and scored on Shane Victorino’s double. Dustin Pedroia reached on an infield hit and Ortiz followed with an RBI single. Chris Resop relieved and hit Mike Napoli with the first pitch before Daniel Nava had a pinch-hit single. After Will Middlebrooks flied out, Jerry Blevins entered and retired the final two batters, leaving the bases loaded.

Lester was pulled with the bases loaded and in the sixth, but Junichi Tazawa got Coco Crisp to fly out.

Josh Donaldson’s RBI single made it 6-4 and Young’s second homer cut it to one in the eighth.

The Athletics had jumped ahead with three runs against Lester in the fourth on Young’s homer that caromed off a billboard above the Green Monster seats, but Boston tied it with three in the bottom of the inning.

Ortiz, back in the lineup after getting Tuesday off, doubled leading off and scored on Napoli’s double. Jonny Gomes walked and, one out later, Drew tripled into the right-field corner.

Astros 10, Mariners 3: In Houston, Chris Carter, Ronny Cedeno and Brandon Laird homered, and Lucas Harrell pitched seven innings for the Astros.

The Astros took two of three in the series, and four of their seven wins this season have come against the Mariners, their new AL West foe. Seattle and Miami are the only teams without a series win this season.

Carter hit a solo shot in the second, Cedeno belted a three-run shot in the fourth and Laird also connected for a three-run drive in Houston’s five-run sixth.

Harrell (2-2) struck out five and allowed one run on six hits.

Blue Jays 6, Orioles 5, 11 innings: In Baltimore, Jim Johnson walked Maicer Izturis with the bases loaded in the 11th inning to force in the tiebreaking run, and the Toronto Blue Jays beat the Orioles to avert a three-game sweep and end Baltimore’s run of consecutive extra-inning victories at 17.

The Blue Jays hit four home runs, but the decisive run came without Izturis taking a swing. With two outs in the 11th, J.P. Arencibia and Munenori Kawaski singled before Johnson (1-2) hit Brett Lawrie with a pitch and issued a four-pitch walk to Izturis, the No. 9 hitter in the lineup.

Esmil Rogers (1-1) pitched the 10th and Casey Janssen got three straight outs for his sixth save.

White Sox 3, Indians 2: In Chicago, Alex Rios hit a two-run homer, and the White Sox stopped a four-game losing streak.

Jeff Keppinger had two hits and drove in a run for the White Sox, who earned a split of the rain-shortened series. Jose Quintana (2-0) was charged with two runs and four hits in five-plus innings.

Rios connected in the fifth, hitting a two-out drive to left on an 0-2 pitch from Zach McAllister. Rios’ team-high sixth homer made it 3-0.

McAllister (1-3) walked five and allowed five hits in 5.2 innings. Four relievers then combined for 2.1 innings of hitless ball, giving the Indians a chance to rally.

Cleveland’s first three batters of the sixth got on base, with Jason Kipnis singling in Drew Stubbs. Nate Jones then replaced Quintana, and Mark Reynolds hit a sacrifice fly to cut Chicago’s lead to 3-2.

Kipnis stole second and third, but Jones struck out Nick Swisher and got Ryan Raburn to fly out to end the inning.

Tigers 7, Royals 5: In Detroit, Jose Valverde returned to the Tigers with a save, and Victor Martinez drove in a pair of runs.

Max Scherzer (2-0) got the win, allowing five runs in five innings, with three Tigers relievers finishing the game. Valverde, called up earlier in the day, returned to the Tigers with a perfect ninth inning.

Rays 3, Yankees 0: In St. Petersburg, Fla., Alex Cobb scattered three hits over 8 1-3 innings, Ben Zobrist drove in two runs and the Rays beat the Yankees.

Cobb (3-1) gave up only two hits through the eighth — Eduardo Nunez’s second-inning single and an infield single by Jayson Nix in the sixth. The right-hander, who struck out seven and walked one, was replaced by Fernando Rodney after giving up a one-out single in the ninth to Brett Gardner.

After allowing Ichiro Suzuki’s single, Rodney completed his third save by retiring Robinson Cano and Travis Hafner.

Zobrist put the Rays up 2-0 on a two-out, two-run double off Andy Pettitte (3-1) in the fifth.