Egg came first than the hen. Consider the evolution of organisms. Think that a species of bird started to evolve into a hen. That bird will lay a hen from which a bird similar to hen arises. Then that bird lays an egg from which a more similar bird to hen arises. Gradually a bird will lay an egg from which a then will hatch out.