This is a diagram of how the USB cable and the XBox controller cable are supposed to be connected.
NOTE: Colors are only there for illustration, they are not the colors inside the cables.
To find out where each cable is going, you can use a multimeter or build your own simple tester by following the directions here.