Everything that had been missing recently from the Rays arrived together Wednesday night at Fenway Park. Good pitching and good hitting.

Jeremy Hellickson avoided the big inning, and the bats actually produced one, sort of, and Rays left town with a 6-2 victory against the Red Sox.

It was the Rays third win in 10 games against the Red Sox and helped stave off losing their first season series to the Sox since 2007.

The win, only the Rays second in their last eight games, snapped a three-game losing streak and prevented them from dropping to .500 for the first time since May 25 when they were 24-24.

"I've been asking for better pitching because we haven't scored enough runs, and we haven't found that answer yet," Rays manager Joe Maddon said.

Hellickson seemed to have found his groove when he won back-to-back starts June 2 and June 8. But he allowed eight runs to the Kansas City Royals in one inning during his last start.

Hellickson entered the night having allowed 54 earned runs, which were tied with Milwaukee's Wily Peralta for the most in the major leagues.

Those runs came in bunches, too. Hellickson allowed three or more runs in eight innings this season. That included innings of five, six and eight runs.

But Hellickson allowed just a pair of runs in his six innings.