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?

Check the battery. Low or dead batteries can make the car do strange things. When the battery died on my 2000 328Ci, the door locks failed to work, and the windows rolled down on their own.

Look up the user's manual on the internet. I ran into a similar problem on a rental car. You might find something interesting. I sure did. We couldn't open the trunk. It turned out the car had a security feature that could only be locked or unlocked by a button in the glove compartment. So, if you're battery is not toast, it might be something else.