Need help with headlight wiring

It seems like the colors match, they are just in different locations. When i turn the key on the driving lights come on, but when i turn the lights on theres nothing. There are only two plugs running to the front. It is the black one that is giving me problems.