Chosen Solution

My engine starts but only runs a few seconds and shuts off.

Check for a weak fuel pump. Next unplug and replug in all the sensors. If one comes loose it will cause issues like this.