P0500 in 2002 Ranger would mean the Speed sensor(OSS) on the transmission tail shaft(or transfer case, 4x4) is not sending a signal to the PCM(computer)
And in 2002 that would also mean the speedometer is not working, since the PCM gets the speed signal from the OSS and then converts it to the 8,000PPM signal the speedometer uses, so if you have P0500 then speedometer can't work because PCM has no signal to convert
If you have an automatic trans P0500 would also cause hard shifts, instead of smooth, it would bang into other gears when shifting, its called "limp mode", which is safer for transmission, even though it feels harsher
So if speedometer is working...........................???
B1318 - Battery Voltage Low, could be engine stalled at some point?
B1359 - Ignition run/accessory circuit failure, same here, engine stalled maybe?
P0325 - not a clue, Cam sensor codes are 340-344
These are valid codes but...................assuming speedometer is working, I think your PCM is having a mental break down, lol.
Have all the codes been cleared now?
So you can see if any come back
They just don't make much sense