over heating

2007 700 grizzly 1400miles total.. we were riding the other day mud water 95* day everything ok then went to drive home & temp started to go up gauge said 207* & no fan then 221* no fan so i shut it off climbed to 227* with motor off. got a d61 21 code so i got home washed rad out (not bad) pulled the wires off the temp sensor on the head & ran a jumper in the wireing harness side & turned key on still no fan. unpluged fan harness by front fender& jumped to 12v battery & fan works. so i started to ck the fan relay up front it has 12v in & 12v out of the relay when i jump the sensor but i DONT have 12v coming out of the fan wire from the wireing harness also when i start it it idles normal for a few minutes then it will stall for no reason when it gets close to 190* it will not take the throttle & backfires stalls & wont restart till it cools off. not sure where the fan circuite breaker is under back seat it says?? could the ECU be bad causing this? also how do i clear the code 21 i can get to the diag screen & scroll thru all the d numbers but thats it cant figure how to clear code thanks for any help i dont want to go to the dealer