Courts serve all types of purposes and each type of conflict is resolved by a different system of justice depending on who the parties are and with whom they have grievance. Very roughly you can consider :
- Citizen vs Government -> Criminal Justice System
- Government vs Government -> Impeachment
- Military vs Military-> Court Martial
- Citizen vs Citizen -> Civil Justice System