is it miss firing?
if so is the head gasket gone?
might have an air leak?
coolant sensor faulty?
charge air sensor?
crank sensor?
cam sensor?
connectors on the wrong plug?
just check these type of things on the car if you are wanting to do it on the cheap its just trial and error replacing engine sensors im afraid.