HOUSTON (AP) Tim Beckham hit a three-run homer in the first inning and the Tampa Bay Rays cruised to a 9-2 victory over the Houston Astros on Monday night.

The Rays were up 1-0 when Beckham connected on his first home run since May 22 to give them a big early lead.

Asdrubal Cabrera added three RBIs for the Rays, who got back on track after being swept by the Rangers in a three-game series this weekend.

More from FoxSports

Erasmo Ramirez (10-4) yielded six hits and two runs in 5 2-3 innings for his second straight win.

Houston starter Scott Kazmir (6-8) tied season highs by allowing nine hits and six runs in 5 1-3 innings, falling to 0-3 this month after going 2-0 with a 0.26 ERA in July. He's won just one of his five starts since a trade from Oakland.