My 99 f150 does this everyonce in a while. I think it has something to do with the steering wheel locking out. You have to pull as far as you can to bringing the wheels straight and then turn the key to release the steering at which point you should be able to pull it out of park. I could be wrong, of course.