what happens when you unplug ecu

Does anyone know if you unplug the ECU on a 06 sportsman 500 EFI does it need to be reflashed. Mine turns over but does not start. sensors and harness good. I did unplug ecu to check harness and now i have a check engine light that stays on . Atv still does not start. it will not let me read codes know also