Given the background description of some cooking related query, summarize the question into a title

I've recently found a recipe that I really enjoy, but it calls for a sunny side up egg. Every time I try to fry an egg in this way it ends up sticking to the pan, the yolk breaks, and it ends up as an eggy mess. I've tried multiple pans including my cast-iron pan, a teflon, pan, and others but they seem to always stick. What am I doing wrong?
Frying EggsSticking to the Pan