BOSTON (AP) Hanley Ramirez hit his first homer in more than a month, knuckleballer Steven Wright was solid into the eighth inning and the Boston Red Sox beat the Baltimore Orioles 6-4 on Wednesday night.

Xander Bogaerts and David Ortiz each had two singles and an RBI for the Red Sox, who rebounded from a 3-2 loss in the series opener on Tuesday for just their fourth win in 11 games.

Adam Jones hit a two-run homer for the Orioles, who ended a stretch of five straight multi-homer games.

More from FoxSports

Wright (8-4) allowed three runs and six hits, struck out four, walked one and hit two batters. He entered with an AL-best ERA that increased slightly from 2.09 to 2.22 by holding an opponent to three or fewer runs for the 12th time in his 13 starts.

Kevin Gausman (0-4) gave up six runs and seven hits in three innings for Baltimore.