Identifying and crimping 2-pin connector
I have always referred to them as "Molex Connectors".  They are assembled by crimping the individual pins and inserting them into the plastic connector. The pins are crimped by a special tool. Using a generic crimping tool will result in a poor connection. A small tube shaped tool is used to remove the pins from the plastic connector. Unless you plan on doing many of these connections the cost of the tools makes it an expensive repair. A less expensive solution is to purchase the  connectors with a pigtail (a short section of wire factory installed). Then make the connection with a generic crimped connector available at most automotive parts stores.