This is the situation where you are pointing directly towards the wind, with the sail flapping and banging over your head, and pushing you back towards the wind every time you try and start sailing again. Most irritating! How you get out of this situation depends on whether you are sailing a boat with a jib or not, but firstly, why does it happen? When you are in irons then every time you try and sail away from the wind, then the mainsail fills and pushes you back towards it again. Soon you will start going backwards!
Simply remember the routine of "push, push" - that is push the tiller and the boom away from you and wait. The boat will slowly start sailing backwards and will turn away from the wind. Then you reverse the routine with "pull, pull" on tiller and mainsheet and you''re off again. It helps if you make sure the boat does not heel as you sheet in again, and in some classes it helps to lift some centreboard.