FOXBOROUGH, Mass. — With his final attempt to bring his team back failed, Philip Rivers pulled off his helmet and flung it toward the Gillette Stadium turf. It bounced back perfectly into his waiting hands.

It was one of the few things that a Los Angeles Chargers player executed well Sunday in their 21-13 loss to the New England Patriots.

Tom Brady passed for 333 yards and a touchdown, and Stephen Gostkowski made four of six field-goal attempts to help the Patriots (6-2) hold on for their fourth straight victory.

The loss snapped a three-game winning streak for the Chargers.

New England got its touchdown on a 2-yard toss from Brady to Rob Gronkowski in the second quarter. The Patriots went 1 for 4 in the red zone, but were able to cobble together the Gostkowski field goals and a safety.

The Patriots’ defense, which gave up 30 or more points three times in the first four games, has allowed just 51 points over the last four. And New England did it this time without linebacker Dont’a Hightower, who sat out Sunday’s win and is expected to miss the remainder of the season following shoulder surgery.

“We just wanted to come out here and play for him,” linebacker Kyle Van Noy said. “It’s always rough when you have a season-ending injury. … We just want to show our support that we’re holding it down for them.”

Los Angeles (3-5) got on the board first when Melvin Gordon found a seam on the outside and rumbled down the sideline for an 87-yard touchdown run. But the rest of the game was marked by Chargers mistakes and their inability to move the ball.

The Chargers cut the Patriots’ lead to 18-13 with 8:30 remaining on a 24-yard pass from Philip Rivers to Travis Benjamin but missed the 2-point conversion pass. They got the ball back a final time after Gostkowski’s fourth field goal and drove to the Patriots 28, but Rivers’ pass with 1 second remaining was intercepted at the goal line by Jonathan Jones.

Rivers finished 17 of 30 for 212 yards.

Los Angeles’ mistakes were highlighted in the second quarter when Benjamin muffed a punt inside the 15, recovered it and retreated all the way to the goal line while trying to reverse field. He was corralled by a Patriots group that included Brandon King, Matt Slater and Jones, then finally wrapped up by King and tackled in the end zone for a safety.

“We weren’t going to let him escape,” Jones said.

Rivers had a similarly head-scratching play early in the third quarter when he rolled to the outside to escape the pass rush but had the ball slip out of his hands for a fumble. He recovered, but the play resulted in a 20-yard loss and a sack credited to Van Noy.

INJURIES

Chargers: Linebacker Hayes Pullard left the field after a collision late in the fourth quarter.

Patriots: Right tackle Marcus Cannon left in the first half because of an ankle injury. … Wide receiver Chris Hogan was sidelined because of a shoulder injury from the collision with Pullard.

STAGNANT OFFENSE

Other than Gordon’s touchdown run, the Chargers were mostly ineffective offensively in the opening 30 minutes. They ran 19 total plays. By comparison, New England passed the ball 26 times in the first two quarters.

“We fought our way back to at least give ourselves a chance,” Rivers said. “Not a lot of room for error down the stretch if we want to accomplish all our goals we still have out there. But certainly, everything is still in front of us.”

QUOTABLE

“We prefer to win.” – Patriots Coach Bill Belichick, on if he minds the defense taking the lead over the past four wins as the offense has struggled in the red zone.

LONG RUN

Gordon’s 87-yard touchdown matched the longest run in Chargers history. Paul Lowe had an 87-yard run against the Dallas Texans in 1961.