The way to determine if it is electrical or mechanical is to unplug the shift solenoid connector. If the shift handle is in OD and you get anything other than fourth gear the problem is mechanical, not electrical. When the shift solenoid connector is unplugged the transmission is electrically isolated from the vehicle. That proves that the problem is inside the trans and is NOT electrical.
Does reverse work?
Does reverse work?