Egg incubators are used to hatch eggs, which can contain rare pokémon. You're given one incubator for free that has unlimited uses, while additional, three-use incubators can be found in pokéstops or bought with pokécoins. Eggs hatch after being incubated for a certain walking distance that depends on the specific egg (usually between two to five kilometers).