changed the fuel pump on 1997 GMC Sonoma

Changed the fuel pump but whe I go to turn the car on it will only stay on for a second then back fire then it turns off

Asked by for the 1997 GMC Sonoma
Check your fuel filter, make sure the fuel pump is getting constant power, check for consistent spark and compression.