I am sure th later escorts like yours use a PIN/PAD arangement between the tailgate and body, these often get cruded up, so a clean might help.
Lift up the tailgate and you will see 2-4 pins sticking out that go onto a pad of contacts when it is closed, try cleaning these.
tabetha