stuck in park on 2001 GMC Sierra 1500

I cannot get my truck out of park with the motor running. I must turn the truck off and then shift to neutral and then restart before I can shift into drive. What has happened? Thanks

Asked by for the 2001 GMC Sierra 1500