Governments are in charge of creating legislations, whereas courts are designed to enforce them.
There are various systems and structures which play an important function in society. An example of one of these would be https://lucfiri772120.amoblog.com/looking-into-government-structures-today-55244349