2006 Mazda. I can't guarantee it but it's probably the same for the Ranger.
Right rear turn - orange with light blue stripe.
Left rear turn - light green with orange stripe.
Right & left reverse - black with pink stripe.
Right & left brake light - light green.
Right & left running light - black with pink stripe.
As I write this I am looking at the wiring harness for a 2002 Mazda and I also have the 2006 Mazda B-Series Wiring Diagram book. I don't know why they used the same color wire for running and reverse.