Democracy is a rather difficult form of government. It requires the public to take part.
In the ideal situation, each person’s vote matters, each person’s opinion matters. The public has to be informed of issues, have opinions.
Direct democracy only exists in few arenas, often in small groups. This allows too many people to have power. The step to ‘Representative’ Democracy means that the people do no more than vote for someone who then has the responsibility. The people give over their volition to that Representative.
Members of the society must be willing to go along if a candidate they do not support wins the election. If they do not, this can lead to civil unrest and, in some cases, insurrection.
In some places, people vote in their district for a representative. The Party which gains the most elected representives selects the leader.
This is the basic Parliamentary style. The Party with the majority appoints the leader so a nation doesn’t wind up with a leader from Party X but a Parliament which is majorly Party Y.
In America one votes for the President separately from voting for representatives in the Congress and the Senate. This can easily lead to a Congress of Party Y and a President from Party X.
In an ideal situation among intelligent and useful people who want the best for their nation, compromise is possible. In nations where Party loyalty is central, decisions which may please one section of the community and harm another will be taken.