i was driving down the road one day and my car died but still had power i pulled on 1999 Dodge Stratus

over and tried to start it i wouldn't i hooked it up to a scanner and pulled the codes it said cam shaft sensor put a new one on and just turns over no fire

Asked by for the 1999 Dodge Stratus
Need to know what engine option you have. Fault code # might be helpful also. 2.0, 2.4 or 2.5 liter?