If the Check Engine Light is on and the engine is overheating, the wire harness for the electric cooling fan should be inspected. The harness can fail and cause these symptoms.