The Type G plug is the standard plug in the United Kingdom, usually 230V and 50Hz, and is referred to as the BS1363 (British Standards 1363). It's most commonly referred to as the "13-amp plug" because it has a 13-amp fuse inside. The wires consist of a hot (or live) wire, neutral wire, and an earth (or ground) wire.
Check out this video tutorial to learn how to wire a Type G electrical plug. These electrical instructions make it a cinch to wire up one of these plugs. It's pretty simple, especially if you're an electrician, but if you're just someone at home trying to repair a broken plug, these should get the job done.