BOSTON (AP) -- The bottom of the ninth opened as if it was scripted for the defending World Series champion Red Sox.

With Boston down by three, Dustin Pedroia and Shane Victorino hit consecutive singles to start the ninth and give slugger David Ortiz a chance to tie it. Ortiz hit a towering shot to right, but it drifted foul and he wound up striking out. One double play later, Toronto wrapped up a 7-4 win Tuesday night and extended Boston's losing streak to five.

"We're in a little rut right now but we'll find a way to get out of it. That's what we do," Pedroia said. "We've just got to go out there and play."

The Red Sox couldn't complete the comeback after Toronto scored the first six runs of the game. Edwin Encarnacion hit a pair of two-run homers and Melky Cabrera and Erik Kratz each hit solo shots for the Blue Jays.

J.A. Happ (3-1) struck out six in the first three innings and picked up his third win in four starts since joining the rotation. Jonny Gomes hit a two-run homer for Boston. It was one of the few times the Red Sox came through at the plate, going 4-for-14 with runners in scoring position and leaving nine on base.