I received a piece of electrical equipment from China which has a power lead with it. It originally had a 2-pin plug which I have stripped to rewire into a 3-pin UK plug but the wires are blue, black and brown! I am confused now as I thought either blue/black could be neutral or black/brown could be live. Didn't expect blue, black and brown in same wire.
Connect to Live (brown wire) and Neutral (blue wire). Leave the Earth pin in place but unconnected. Make sure that the plug has a 5 Amp fuse in it (these usually have a blue coloured body, 13A fuses are brown). If the wires are not blue and brown then you must make sure that the voltage is correct. UK mains is nominally 230 Volts, the same as the rest of Europe. Blue and brown are the standard European colours for mains wiring. If the razor is non-European then it may be designed for 110 Volts and will be destroyed when you plug it in. If this razor is an old British one it may have red and black wires. These colours have not been used for appliances since about 1968 and so the device will be very old and may be unsafe.
You need to use a continuity tester to see what wire goes where, specifically the black wire, or just leave it disconnected.