Perhaps searching for a COLOR wiring diagram would help? If we new what bike it would help, go to your profile and put it in your signature. I probably would have even searched it out for you if had known.
I appreciate everyone has to start somewhere, and your username says you are a Noob... But I am going to flame you a minute here. If you took something like that apart, and seriously can't figure out how to put it back together, maybe working on something that can cause you dismemberment or death isn't the best for you. ???
Honestly though, there are not too many connections for the right and left controls inside the headlamp bucket to make this a bad task. Green is usually ground (earth). Older bikes have male and female bullet connectors, just match the wire color. About '80 and newer bikes have molded plastic ones that are literally "Plug and Play".
I do like Alphas answer but if you get some more info on you specific bike up here, take a pic of the inside of the headlamp bucket and post it up. We can sort this out. ;D