What would cause the door locks and the trunk release to both stop working?

2002 Ford Crown Vic
The other day the alarm suddenly went off, the door locks were going up and down and the trunk opened.
I finally disconnected the battery for a while. After that everything was fine, except the door lock and trunk release mechanisms won't work. I have tried replacing several fuses and a circuit breaker (20 amp, CB) but they still won't work. Any ideas?