I have had all these issues. Cam sensor and IAC motor.
These tow sensors were the Bain of my existence for a long time. I've towed it home and then it work fine. IAC would cause the car to not start run funny back fire and sound like shit.
I have had the same issue.
I believe the IAC motor causes this.
I changed the IAc and it fixed.
Mine would run fine even for long drives. Once I shut it off it would crank and crank. Without starting. Towed home then turn the key and perfect start.