The RED goes to your T
The BLACK goes to the big lug of the metal "switch" full of soldering
The GREEN goes to the one above the R
The BLUE goes to the one labeled Pin
Hope you can get it working back again, I'm fixing mine right now. I was thinking on doing an iFixit page of it cause i couldn't find anywhere on the internet for a guide on how to repair the remote