1998 Chevy Malibu starts but won't run

1998 Chevy Malibu 6 cylinder starts but cuts off. Tried the start and wait 10 minutes method but that didn’t work

actually it takes 30 minutes. 3 sets of ten minutes. try to start car, when it dies leave ignition on for ten minutes or until security light goes out, turn off ignition for ten seconds. repeat two more times and see if that works. dont forget to have a charger on your battery so it doesnt die.