Three teens were pulled from a burning wreck yesterday by quick-thinking Queens residents, but one died hours later from injuries he had suffered when their stolen car smashed into a subway trestle, police said.

Dashawn Davis, 17, who attended Broad Channel HS, was in the front seat of the speeding Honda Fit – which was stolen Tuesday night in Greenpoint, Brooklyn – when its 16-year-old driver lost control at around 8:20 a.m., police said.

Davis, who lived on Alameda Avenue in Arverne, died at Peninsula Hospital from severe burns.

“They ran the light. They were going fast, fast enough, at least 50 miles per hour,” said Tashawn Layne, 16, who was walking to school when she saw the accident near Beach 101st Street.

“They lost control and they jumped the curb.”

The quick reaction of residents along Rockaway Freeway in Rockaway Park, who doused the flames with garbage pails of water while trying to pull the victims out, may have saved the driver and a teen in the backseat, witnesses said.

“The neighbors had hoses and garbage cans filled with water and they were throwing it on the car,” said Jeffrey Suarez, 31, who ran to the scene.

“We tried to save everybody. They were all teenagers.”

Pat Andre, 54, said, “I came running out and there were three kids stuck in the car. The kids were screaming, ‘Help me! Help me!’

“My son grabbed the hose and hosed down the car.”

A 15-year-old in the back seat, identified as a student at Beach Channel, was pulled out by Suarez as neighbors tried to fight the fire with buckets and hoses.

“He shouted, ‘My legs! My legs! I can’t feel my legs!’ ” Suarez said.

He was in stable condition at Jamaica Hospital last night after undergoing surgery to his broken leg.

The driver of the vehicle, identified as a Boys & Girls HS student, was in stable condition at New York Hospital