ST. LOUIS (AP) — The St. Louis Rams got off to a strong start against the San Francisco 49ers on Monday night, but it wasn't strong enough.

The Niners stormed back from an early 14-0 deficit and beat the Rams 31-17 in St. Louis as Colin Kaepernick (KAP'-ur-nik) passed for 343 yards and three touchdowns. Brandon Lloyd, Anquan Boldin and Michael Crabtree each caught a scoring pass for the 4-2 49ers, who have won three in a row.

Austin Davis tossed a 22-yard pass to Lance Kendricks to give the Rams a 14-point lead in the first quarter. But Ahmad Brooks and Dan Skuta had two sacks apiece for a defense that sacked Davis five times and permitted one first down on St. Louis' first six possessions of the second half. The defense also clinched the victory on Dontae Johnson's 20-yard interception return for a touchdown in the final minute.

The 1-4 Rams had just 158 total yards after going up 14-0.

Injured Cruz returns to NYC...Pats' Mayo and Ridley out for Thursday night

UNDATED (AP) — Giants receiver Victor Cruz has been transferred to a New York City hospital after spending a night in Philadelphia following a major knee injury.

Cruz tore the patellar tendon in his right knee in third quarter in the Giants' loss to the Eagles on Sunday night. The injury is expected to end his season.

Elsewhere:

— The New England Patriots have declared middle linebacker Jerod Mayo and running back Stevan Ridley out of their next game with right knee injuries. The Patriots are at home against the New York Jets on Thursday night.

— Browns Pro Bowl center Alex Mack will have surgery on his broken left leg and will likely miss the rest of the season. He was injured in Sunday's win over Pittsburgh. Mack's surgery is being scheduled and a timetable for his recovery will be determined after the operation.

— New York Jets starting cornerback Dee Milliner and left guard Brian Winters were placed on season-ending injured reserve Monday and will require surgery. Milliner tore his right Achilles tendon in Sunday's loss to Denver, while Winters tore the ACL in his left knee.

— The Bills have given receiver Mike Williams permission to seek a trade. He was inactive for Sunday's loss to New England after starting the four previous games. Buffalo acquired Williams in an off-season trade with Tampa Bay for a sixth-round draft pick.

More From AM 1400 The Cowboy