Follow the wires, if they enter the transmission near dipstick tube that’s for solenoids inside transmission. If that’s correct, no wonder your transmission won’t shift. 
If there is 2 pair of wires, 1 with two wires in a black tube and 1 with two wires in a clear tube running to passenger side edge of transmission they are for transmission pulse generators, which if not plugged in can also cause a shift problem.
If there is 2 pair of wires, 1 with two wires in a black tube and 1 with two wires in a clear tube running to passenger side edge of transmission they are for transmission pulse generators, which if not plugged in can also cause a shift problem.