well, its hard to tell u whats the exact reason ..but it MAY BE the shift locker (the button on the shift stick)
this button when pressed should release the gear from P to other gears .. most probably its a broken plastic peace that needs to be replaced.
happened with me once.
hope thats the...