One wire is ground, should be yellow or green with a stripe on it. (or another two colored wire) The other two have only one color: brown and blue for example. Since it's AC the ground wire must be reconnected to the ground wire. The other two don't matter, but it is good practice to not mix colors.