An alternative to a representative government is a direct democracy: all the citizens (of age) voting personally on laws (as is is Switzerland).
This is problematic because it's costly and takes up a lot of time: all the citizens need to be informed about all the laws. Because of this often representative democracy is preferred.