WARNING: This page is about a different car, the 2004 Mazda B4000, 2004 Mazda B3000, and 2004 Mazda B2300. However, it is still accessible from the selected car via links, so may be relevant.
Pull lightly on individual wires to check that they are secured in the terminal.