You'll need an OBD-II code reader. Some places, such as Auto Zone, do this for free. Preferably, you'd use one which actually reads the data stream as well as dtc's (Diagnostic Trouble Codes). Start here. This may lead you to the issue with the fan motor.