All these functions are given by God. People should be conscious of the fact that they are representatives and they should do their respective functions honestly and without misusing their privileges. They should establish justice in the world. If they fail to do so, they will be removed from their functions and punished. World appears like an opera house.
People act as king, queen, minister, officer and sujects.
When the play is over, the king is not a king and the queen is not a queen. He is neither a husband nor she a wife. But the actors are rewarded for their acting. Similarly , if we are honest in our lives, we may get award from God. Otherwise we will get punishment.