Automatic Transmission. I have reverse only. Drive does not light up only L & 2. on 1994 Toyota Camry

Gears shift in the transmission pan. The fluid is good. I disconnected the electric to the transmission and the wheels went forward in drive. The vehicle is giving codes of variable speed sensor and shift solenoid.

Asked by for the 1994 Toyota Camry