The simple answer is a bad transmission. To know exactly what the problem is means taking it apart. Do check your transmission fluid level just in case that is the problem.
Try putting in TransX or Lucas transmission additive. It's a long shot, but I've seen amazing things happen, if it's just a stuck valve inside. You'll be checking the level at the same time. Still dead, rebuilt trans.
Search Mercury Grand Marquis Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Mercury Grand Marquis Experts