Check for blown main fuses in the power distribution box in the engine compartment, if they shorted something out it could have blown a few.
make sure the battery you have is connected properly, positive is positive and negative is ground. Believe me it happens all the time.
Search Mazda B-Series Pickup Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Mazda B-Series Pickup Experts