Start with the basics - check the fluid. Is it low? Low fluid will prevent engagement.
If it's full, is it brown or black? Could be a sign of internal damage.
Last, there is a remote chance of a Transmission Range sensor problem. Testing that sensor would be a good idea.