To get an egg in Pokémon, head to the Day Care Center and leave two compatible Pokémon of different genders with the caretakers. After they've spent some time together, walk around for a while to let the egg develop. When you return, the couple will hand you an egg. From there, just keep walking with the egg in your party until it's ready to hatch.