1989 cavalier z24 backfires and tries to stall?

There could be a couple causes . The first would be the oxygen censor isn't working properly and the other is the coil pack is probably going out.