Wiring a socket in the UK should only be done by a qualified and experienced electrician. However, here are the general steps they would follow to safely wire a socket:
Turn off the power supply: Before starting any electrical work, the electrician must turn off the power supply to the area where they will be working. They can do this by switching off the relevant circuit breaker in the fuse box.
Choose the right socket: The electrician will choose a socket that is appropriate for the electrical load it will be used for. They will ensure that the socket has the correct voltage rating and amperage capacity.
Run the cable: The electrician will run a cable from a nearby socket usually, to the socket location. The cable will be secured to the wall using clips or in conduit.
Strip the wires: The electrician will strip the ends of the cable wires and connect them to the socket terminals. The brown wire will be connected to the live terminal, the blue wire to the neutral terminal, and the green/yellow wire to the earth terminal.
Secure the socket: The electrician will fix the socket to the wall using screws and ensure it is level and flush with the surface.
Test the socket: After the wiring is complete, the electrician will turn the power supply back on and test the socket to ensure it is working properly. They will use a socket tester or a multimeter to check that the wiring is correct and there are no faults.
Remember, it is always recommended to hire a qualified electrician for any electrical work to ensure that it is done safely and to a high standard.