Presumably you mean 2 'cables' and not 2 'wires' - a light wouldn't work with 1 'wire' because the electricity would have nowhere to go.
Either one cable is a live supply and the other goes to the switch, or one cable goes on to the next light.
Adam
January 2012