Trevor Story hit a tiebreaking single in a three-run ninth inning and the Boston Red Sox beat the Tampa Bay Rays 6-3 to keep pace in a crowded American League playoff race.