As TJ says. When the engine does something wrong the
ECU generates a code, this code has a specific meaning. If you have the code you will have a better idea of what is up with your engine. You will have a better idea of what path to diagnose rather than trying a bunch of random things!