A connector, as the name suggests, connects. More specifically, it is used to connect or disconnect electrical circuits. Connectors are thus, also known as electrical connectors. In general, we have two types of connectors: male and female. Male connectors have 3 pins (in case of 2 pin connector, earth connection is missing), while female connectors have 3 recesses to receive these pins. When male connector is inserted into female connector, the connection is made and electrical circuit is complete. In many cases, female connectors are covered with insulation, to ensure that no accidents happen (especially by children inserting their fingers in the connector slots). Similarly, to ensure proper orientation of male connector, the earth pin may be made of a different shape than the live and neutral pins.
Hope this helps.