You need to get a test light. Turn the headlight switch on to park and using the test light find the wires that light up the test light. If I remember right, there are three, two for the tail ights and one for the license plate light. Write down the colors. Press the brake pedal down and test which ones light the test light, write down. Turn the left turn signal and test, do the same for the right. Put the tranny in reverse and test for light. The rest should be the same color and are grounds.
Toyotas use a seprate light for the turn signals and brake lights. What you have now will not work right unless you get a converter at a trailer supply,some auto parts stores also sell them. Follow the instructions for hooking it up.