Sonny Gray allowed four hits in five scoreless innings before leaving with a bruised right ankle and the Oakland Athletics beat the Tampa Bay Rays 7-2 Sunday.

Gray (5-2) was hit on the lower leg by James Loney's grounder in the fourth, but stayed in for a while longer. He had lost his previous two starts.

Billy Burns hit the first pitch of the game into the right-field seats for his first major league homer.

Mark Canha and Josh Reddick also homered as the A's won consecutive games for the second time this season. The only other time they did it was April 13-14 against Houston.

Erasmo Ramirez (2-2) took the loss as Tampa Bay wound up with a four-game split after winning the first two games.

Burns got his first big league RBI on Saturday night with a bases-loaded walk. He then topped that in the top of the first against Ramirez.

Canha put the Athletics up 5-0 with a three-run homer in the sixth Ramirez. It was Canha's fourth hit in his last 43 at-bats.

Reddick made it a solo homer in the seventh.

Logan Forsythe cut the Rays deficit to 6-2 with a two-run single during the eighth.

Steven Souza Jr. made contact with A's catcher Stephen Vogt as he was being tagged out while trying to score from first base on Loney's first-inning single. When left fielder Sam Fuld threw the ball to second base, Souza continued past third but was thrown out at the plate by shortstop Marcus Semien.

Vogt hit a sacrifice fly in both the third and ninth innings.

TRAINER'S ROOM

Athletics: 3B Brett Lawrie (back) is feeling better but was out of the lineup for the second straight game. ... INF-OF Ben Zobrist (knee) is expected back Monday. ... LHP Drew Pomeranz (shoulder) will resume playing catch Monday. ... LHP Eric O'Flaherty (shoulder) could start a rehab assignment this week.

Rays: Souza left in third with a sprained left wrist, which occurred on a swing.

UP NEXT

Athletics: Losers in 12 of their last 14 home games, the A's host Detroit and former Oakland OF Yoenis Cespedes on Monday.

Rays: Monday night's game against Seattle will mark the first-ever matchup of big league managers -- Lloyd McClendon of Seattle and Tampa Bay's Kevin Cash -- that played in the Little League World Series.