XploderPhil is right, you will have a lot of R&Ring to do for all of those wires. I was afraid you meant that relay box, which is under the air cleaner. It's low enough that any deep water could reach it.
Hopefully not much of the wiring is bad, melted etc. You don't want to have to cut or solder any wires of course, first get a closer look at yours. The wires all will come out without cutting anything, but it's slow work to remove each terminal.
All connectors have plastic locks in them which are to keep the terminals from coming out. The lock piece is colored in contrast to the connector, so it's easy to see what part it is. Then you find the direction it is to come out, and push or pry it out. The lock part comes out completely, and then each terminal can be removed easily with a tiny pick or screw driver, to gently move the locking tang down next to the terminal deep in the connector. Use patience, and look closely, it is easy to figure out with these details I've posted.
Those relays will swap with any same size relay from any late 90's Fords. At this age some relays should be replaced. I had the one in that actual relay box, fail closed, it kept my fog lights on, even with the switch off, and drained the battery.
See below, this is a similar relay box I took apart and used for my 99 mail truck. See the red pieces, those are the locks which have to be removed to allow the terminals to come out. They pry upward and out, there's a spot on the side which you should see, find the red on a hole/slot, and pry it upward and out.