where is the shift solenoid located? on 1998 Ford Mustang

my mustang is stuck in 2nd gear and will not shift up or down.could the solenoid be bad causing this because I was about to buy another transmission to put in it until someone told me that the shift solenoid could be bad

Asked by for the 1998 Ford Mustang
the shift solenoid is inside the transmission pan in the valve body Therefoe the pan needs to come off.