Take a bow, all those who had Justin Grimm as the first Texas Rangers starting pitcher to win a game in June.

Take another bow, all those who had David Murphy and Leonys Martin, batting eighth and ninth in the lineup, as the catalysts for a struggling offense.

They weren’t the only three contributors Wednesday night for the Rangers in a 9-4 victory over first-place Oakland. But their unexpected contributions, especially from the left-handed-hitting Murphy and Martin against a lefty pitcher, helped turn a 3-2 deficit into a cakewalk and a Grimm W.

Murphy had two hits off Tommy Milone to spark rallies in the fifth and sixth innings, and he and Martin scored two runs apiece as the Rangers won for the second time in three games after enduring a six-game losing streak.

“That’s the team we are,” said right fielder Nelson Cruz, another key piece in the win. “We lost six games in a row, but the guys in here forgot about it. It’s not a surprise that we came back.”

Grimm (6-5) was the beneficiary of the fifth-inning rally. He had just coughed up a 2-0 lead by issuing two walks and a three-run homer to Chris Young in the top half, and was losing when he threw what turned out to be his final pitch.

But Murphy opened the home half with a bloop single to center, and Martin followed with a sharp single to right. Ian Kinsler delivered a 3-3 tie when his sacrifice fly scored Murphy.