I would check error codes first. Turn an ignition key three times: on-off-on-off-on (just ignition, not starter). Then look at "Check engine" light. It will flash like two flashes, pause, three flashes, long pause - code 23, etc. Find out what is it on internet. It could be one of sensors.
Another thing to consider - a broken teeth on the timing belt: a crankshaft rotates, but cams - not. By the way, it will give you "Bad cam position sensor" code. Make sense to check if your timing belt is ok before changing the sensor.
And, (silly, hah?) check if all your vacuum hoses are in place under hood. (Happened with me once...)
Good luck, Alex