If the handle doens;t release it can be a few issues.
I am not sure what M isfor on the dash as it usually says P,R,N,D,2,1
or did you mean N?
Do you brake lights come on?
You could have poped a light bulb fuse causing the sensor to not activate the park release , or the tranny is out of alignment on the mounts.