This meaning refers to the part at the end of an electrical cable that connects to a socket.
Insert the plug into the wall socket.
The plug on this cable is damaged.
As a verb, plug means to connect equipment to power or close a hole firmly.
Plug the charger into the socket.
They plugged the leak with cloth.