HOUSTON — Tom Brady got Rob Gronkowski back, and it helped the New England Patriots return to the win column and clinch a playoff spot.

Brady threw for 226 yards and two touchdowns and the Patriots snapped a two-game skid with a 27-6 win over the Houston Texans on Sunday night.

The Patriots (11-2) moved ahead of the Denver Broncos and the Cincinnati Bengals in the race for the top AFC playoff seed and can clinch the AFC East with one win, or with one loss or tie by the New York Jets.

New England hasn’t lost three straight games since 2002.

Brady threw TD passes to Keshawn Martin and Gronkowski in the first half to help New England build a 17-6 lead. Gronkowski had four receptions for 87 yards and a touchdown in his return after missing last week’s game because of a knee injury.

The Patriots didn’t move the ball as well in the second half, but the defense harassed Brian Hoyer into multiple mistakes. Jabaal Sheard had strip sacks on Hoyer twice after halftime. The Patriots recovered the second one early in the fourth quarter, and James White made it 27-6 with a 2-yard run three plays later.

Hoyer was sacked five times and left the game with about 9 minutes remaining to be evaluated for a concussion. The quarterback already missed a game this season after getting a concussion on Nov. 16.

Hoyer was 11 of 22 for 155 yards.

The Texans (6-7) recovered a fumble and forced two punts by the Patriots in the third quarter, but weren’t able to take advantage of any of those opportunities and entered the fourth quarter trailing 20-6.

J.J. Watt played for the Texans despite breaking his left hand in practice on Wednesday. He wore a cast that enclosed his fingers in a club-like ball.

The Texans won two challenges on plays that were called receptions on New England’s first drive of the second half, forcing the Patriots to kick a 49-yard field goal to make it 20-6.

Houston was forced to punt on its next possession, but Martin fumbled the return and the Texans recovered on the New England 21. But the Texans couldn’t move the ball and turned it over after a failed fourth-down try.

Gronkowski simply outjumped Quintin Demps to grab a 1-yard touchdown pass just before halftime to extend New England’s lead to 17-6.

The Patriots took a 7-0 lead when Martin, a former Texan, got away from rookie Kevin Johnson and was wide open in the end zone for a 2-yard touchdown. That score was set up when Brady threw across his body and on the run to Gronkowski for a 45-yard gain.

Gronkowski was open after linebacker Whitney Mercilus fell trying to cover him.