wont crank starter free spins code 12 on screen

I have a 2012 grizzly 550 FI i swamped it last weekend and the next day i drained everything properly and got it running again drove it a round for 10 minutes shut it off and thats the last time she started for me the starter is free spinning everytime i try and start it then the starter quit then the solenoid started to click so i thought no big deal i will buy a new solendoid and a new starter let it set for a week the new solenoid and starter came in today i installed it now im back to square one with the starter freespimning now code 12 is comming up on my screen wich that is the crankshaft position sensor i stripped all black tape off it and checked to make sure theor were no kinks in wires or shorts but the wires are just fine need help really bad im stumped thank you.