How does the Privilege Motion in Parliament protect the rights of its members?

I want to understand how the Privilege Motion works in Parliament and in what situations it is used, especially in the context of political controversies or criticism.