Fat from yolk or a greasy bowl stops the foam.
Whipping egg whites works because their proteins unfold and link up around air bubbles, forming a stable foam. Fat gets in the way. Even a small drop of yolk, which is rich in fat, coats those proteins so they can't bond, and the whites stay runny no matter how long you beat them.
The same goes for a greasy bowl or whisk. Plastic bowls are a common problem because they hold onto traces of oil.
To get good peaks:
Separate eggs one at a time over a small bowl, so a broken yolk doesn't ruin the whole batch. Use a clean glass, stainless steel or copper bowl; wiping it with a little lemon juice or vinegar removes any grease. Add a pinch of cream of tartar or a few drops of lemon juice, which helps the foam hold. Start slowly, then speed up, and add sugar gradually once soft peaks form.