Not getting in parking gear otherwise working/running fine on 2005 GMC Savana 2500

Initially while parked, was not shifting any gear seem like stuck in park. After 3-4 turn off and on it got running ( shifting gears ) but does not go in parking gear.

1 answer
poss shift lock out solenoid is hanging up or bad brake light switch.