No lead was safe in a raucous Game 5 of the World Series on Sunday, but the Houston Astros had the advantage of batting last. After nine innings filled with lead changes, the home team put one last run on the board in the 10th to beat the visiting Dodgers, 13-12.

Facing Dodgers closer Kenley Jansen, Alex Bregman drove in the winning run on a line drive to left field, ending an incredible offensive run for both teams.

The teams will now head back to Los Angeles with the Astros holding a three games to two lead in the best-of-seven series. Here are our takeaways from Game 5:

■ Houston’s offense was one of the most efficient in baseball history this season, and they finally looked like it in this marathon game, with their Nos. 1 through 5 hitters combining to go 13 for 23 with four home runs and 12 R.B.I. It may be shortly lived, as the team has not hit nearly as well on the road.

■ The teams have combined for 22 home runs in the World Series, breaking the Series record that had been set by the Anaheim Angels and San Francisco Giants in 2002. The Astros have also tied the Giants of that year for the most by a single team with 14.