HOUSTON -- The Boston Red Sox keep finding ways to come back.
It was the sixth time in its past seven victories that Boston has come from behind to win.
"This team has done it all year," Drew said. "Everybody has fun, but everybody knows their role. I think that makes it easier on guys. Everybody has been clutch in late innings. That is what good teams do."
The home run was Drew's first go-ahead home run in the ninth inning or later since 2008. Drew, who came off the disabled list on July 20, also hit a game-ending single to beat Seattle on July 31.
"He was starting to get in the flow of things once he came back and got some at-bats under his belt after the DL stint after the All-Star break," Boston manager John Farrell said.
"To have that kind of bat at shortstop down in the bottom third of the order, it lengthen things out. He's swinging with a lot of confidence right now against both lefties and righties."
"I got ahead of him," Fields said. "I threw a pretty good changeup and tried to come back with a breaking ball and left it up. Should've buried it down a bit more and it sort of just came out of my hand, and he put a good swing on it."
Houston's bullpen has 18 blown saves this season.
"It's one of those things where you sit there and ask yourself, 'Could we do something different?' " Houston manager Bo Porter said. "You put guys in situations where you feel they have the best opportunity to be successful, and tonight is another example of us just not getting it done."
Grossman tied it at 2 in the third with a two-run shot to right. He extended his hitting streak to 10 games with his third home run of the season and second in two games.
Jose Altuve gave the Astros their first lead of the night in the sixth at 3-2 with a run-scoring single off a diving Brock Holt's glove, scoring Grossman, who had led off the inning with a double and moved to third on a wild pitch.
Altuve scored on Castro's double down the right-field line, sliding in ahead of Jarrod Saltalamacchia's tag at the plate. Castro, who had moved to third on the throw home, scored on Marc Krauss' sacrifice fly to make it 5-2.
But Gomes started the comeback with a two-run home run in the seventh off Zeid.
Victorino was ejected by third base umpire Brian Knight with one out in the seventh after running out of the dugout to argue a call. Victorino refused comment after the game.
Ryan Dempster allowed five runs and seven hits while striking out seven over six innings. Dempster has allowed 12 runs in 12 innings over his last two starts.
"Just a few pitches ended up being a two-run home run and a big double," Dempster said. "I threw a lot of really good, quality pitches tonight. That's probably the best I've felt in a while. Unfortunately, I did not have much to show for it, but we got a win, so that's the most important thing."
Holt gave the Red Sox a 1-0 lead in the second on a groundout, scoring Gomes. L.J. Hoes kept the Red Sox from scoring more, making a diving catch on Ellsbury's drive on the warning track to end the inning.
Jarred Cosart had his fourth straight no-decision after allowing two runs and seven hits with five walks and three strikeouts in five-plus innings.
Porter was ejected in the ninth by home plate umpire Mark Carlson for arguing a foul tip third strike call.
- Houston selected the contract of RHP Jorge De Leon from Triple-A Oklahoma City and optioned RHP Jose Cisnero there on Wednesday. The 25-year-old De Leon has not allowed a run in five relief outings over 7 1/3 innings for Oklahoma City.
- Houston DH Chris Carter had a second straight game off on Wednesday. Porter said he wanted to give Carter some time to work in the cage and try to figure out a way to get back on track after hitting .107 over his last 10 games. Porter said Carter will be back in the lineup on Friday.
- Houston SS Jonathan Villar sat out on Wednesday with a sprained left thumb. Porter said he'll have an MRI on Wednesday and he would know more about his availability after that.