04 Pontiac GTO

I did a diagnostic at OReilly auto parts and told to replaced the cam and crank sensors I did this. The car will start but does not continue running