05 rancher electrical problem

I have a 2005 rancher 350 4×4 electric shift. I built the motor on it,got ready to start it and noticed that the gear indicator was flashing.Looked at the manual to see what was wrong.angle sensor was replaced stopped flashing.Before and now the gear indication on the meter will only read the gear if done manually.Replaced the ecu and still doing the same thing only only reads the gear if done manaully.electric shift will not work checked the motor.shift motor works.have done all i can.afraid the gear selector switch insid the motor is bad.