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.

1 - VBus(Power)
2 - Data-
3 - Data+
4 - Ground

To find out where each cable is going, you can use a multimeter or build your own simple tester by following the directions here.