Josh Allen led the Buffalo Bills to a wild victory against the Los Angeles Rams on Sunday to remain undefeated for the 2020 season.

The Bills blew a 25-point lead in the second half after going up 28-3 in the third quarter. Buffalo rectified that when Allen completed a 3-yard touchdown pass to Tyler Kroft with 15 seconds left.

BRONCOS GET CREATIVE WITH 'SOUTH PARK' CARDBOARD CUTOUTS AS 5,700 FANS ATTEND WEEK 3 GAME

The touchdown pass helped the Bills seal the game.

Allen finished 24-for-33 with 311 passing yards, four touchdown passes, a rushing touchdown and an interception. Kroft had four catches for 24 yards and two touchdown passes. Stefon Diggs and Lee Smith also had touchdown catches.

Cole Beasley led the Bills with six catches for 100 yards.

BROWNS, WASHINGTON COACHES MAKE NFL HISTORY IN WEEK 3

The Rams got 114 rushing yards and a touchdown from Darrell Henderson. Jared Goff was 23-for-32 with 321 yards, two touchdown passes and an interception. Cooper Kupp and Robert Woods each had a touchdown catch.

Buffalo’s Jordan Poyer and Taron Johnson had more than 10 tackles. Poyer finished with 14 and Johnson had 11. Los Angeles’ Aaron Donald had two sacks in the game. Los Angeles sacked Allen four times.

Buffalo has now won its first three games in consecutive seasons. The last time the franchise did that was in 1991 and 1992. It’s the third time the team has done that overall.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

The Bills are now 3-0 and the Rams are 2-1.

The Associated Press contributed to this report.