Well I have just been learning about this so :)
well what happens is the water starts to take away parts of the wall or any substance, it will continue until it forms a arch, after a while the wall becomes to weak to stand and makes a stump or a pile of wall, there is a way to protect this by using the sea defences which I will not go into :)