Rafael Devers flips his bad after hitting a home run in the sixth inning of Boston’s 2-1 win over the Astros on Tuesday in Houston. David J. Phillip/Associated Press

HOUSTON — Rafael Devers homered and had two RBI in his return from the injured list to lead the Boston Red Sox to a 2-1 win over the Houston Astros Tuesday night, hours after they acquired veteran first baseman Eric Hosmer in a trade with San Diego.

Devers didn’t show any signs of rust in his return after sitting out since July 23 with inflammation in his right hamstring. He hit an RBI double in the fourth inning before hitting a tiebreaking solo homer with two outs in the sixth inning to help Boston to its third straight victory.

Tommy Pham singled and scored on the double by Devers in his debut with the Red Sox after a trade from Cincinnati on Monday.

The trade for Hosmer comes a day after they sent catcher Christian Vázquez to the Astros, a move that had some players worried the team was giving up on the season.

Hosmer was part of the deal with Washington for Juan Soto before he refused the trade and the Padres instead shipped him to Boston along with two minor leaguers and cash in exchange for minor league left-hander Jay Groome.

Red Sox starter Kutter Crawford (3-3) yielded seven hits and a run in six strong innings for his first win since July 4.

Advertisement

Yordan Alvarez doubled off the wall in left-center field to start Houston’s eighth before Austin Davis walked Alex Bregman.

Davis struck out Kyle Tucker before he was replaced by Tanner Houck. He retired Aledmys Díaz and Jeremy Peña to end the threat.

Trey Mancini, traded from Baltimore on Monday, made his Astros debut as a pinch-hitter to start the ninth and grounded out. Vázquez made his first appearance for Houston next when he pinch hit, and he also grounded out.

Houck then retired Jose Altuve on a long fly ball to center field to get his eighth save.

Manager Dusty Baker sent Vázquez out with the lineup card before the game and he tipped his cap to his teammates in the visitor’s dugout.

Houston’s Cristian Javier (6-7) gave up four hits and two runs with seven strikeouts in six innings to lose his fourth straight decision after winning the previous three.

Advertisement

Javier didn’t allow a hit until Pham singled with one out in the fourth. Devers then doubled on a liner to right field to score Pham and tie it at 1-all.

There were two outs in the sixth when Devers connected on his shot to right field to make it 2-1.

Jose Altuve hit a leadoff double and scored on a single by Yuli Gurriel to give Houston a 1-0 lead.

A day after trading for Vázquez and Mancini, the Astros bolstered their bullpen Tuesday by acquiring left-hander Will Smith from Atlanta for starter Jake Odorizzi. Smith arrived in the Astros dugout early in the game and greeted several of his new teammates before moving to the dugout where he exchanged hugs and handshakes with his fellow relievers.

TRAINER’S ROOM

Red Sox: OF Rob Refsnyder was placed on the injured list with a sprained right knee. … C Ronaldo Hernández and OF/1B Franchy Cordero were optioned to Triple-A Worcester.

Astros: General Manager James Click said Tuesday that C Jason Castro had knee surgery last week and would miss the remainder of the season. … RHP Lance McCullers, who has been out all season with a strained right forearm, allowed three hits and three runs — two earned — in 3 1/3 innings in his third rehabilitation start for Triple-A Sugar Land. He threw 76 pitches.

OH BABY

Bregman returned to the lineup after spending just one day on the paternity list to be with his wife Reagan for the birth of their first child, a son named Knox Samuel Bregman.