O friend, your case is complicated, since the fact that you find colored wire does not guarantee an order ... one of the cables goes directly to the lamp, another from the lamp to the Switch, and the third to the free terminal of the Switch. ...
Of the three wires you find, two of them must give you voltage ... 10-12volts ... if you identify these two, one goes to the lamp and the other to the switch ... And the one that you have left would go to the free terminals switch - lamp ...
luck and success