That sounds like something is partly unplugged, like your cam-angle sensor, throttle position sensor, coolant temp sensor. Backfiring means either that the engine does not know when to fire (like if cam-sensor signal were being lost), or the fuel mixture is waaay too rich like if the coolant temp sensor signal or throttle-position sensor were lost).
http://zilvia.net/f/engine-tech/293028- ... guide.html
Sometimes if the pin of a connector gets bent or pushed in, it makes contact for only a little while, then falls off.