How did a ship get stuck in the Suez Canal?

The Suez Canal is one of the most important waterways in the world, accounting for almost 12 per cent of all global trade, but for six days it was blocked by a skyscraper-sized container ship. For almost a week the Ever Given was lodged into the side of the Canal blocking all trade ships traveling in or out, meaning hundreds of ships had to either wait in the port or make a long and costly journey around the coast of Africa. How did this happen? And what is the extent of the damage done?