Ezekiel brought God’s messages of judgement to the people in many ways.
He made a model of the city of Jerusalem and pretended to attack it. He laid down on the ground in certain ways. He ate certain food and cooked it a certain way. He shaved his hair and beard with a sword. He did certain things with the hair he had cut. He clapped his hands, stamped his feet and cried out certain words.
All of these were actions of prophecy. Ezekiel did them to help the Jews understand something. God was going to allow the Babylonian armies to destroy Jerusalem. The people of the southern kingdom would suffer terribly. Many would die of hunger and many would be killed. Many would be scattered to other nations.
These were some of the covenant curses. This was how God would bring judgement against the southern kingdom. God wanted the Jews living in Babylon to believe that he would bring this judgement. He also wanted them to understand why it would happen.
It was because God’s people hadn’t been faithful to the Mount Sinai covenant. They worshipped false gods instead of worshipping only God. Instead of loving their neighbours they sinned against one another and committed murder. They were full of pride. They cared more about money and riches than about God. God wouldn’t allow them to continue doing evil things.