Well, I write my ideas about it, and you can discuss about it.
I take The Netherlands as an example.
In most European countries we have a "one man, one vote" system.
Voting is secret, already from the beginning.
When people wanted to become "a member of parliament" in this system it was obvious to form parties that had an ideology that most of the members could agree with.
Those parties relied mostly on a party program.
But, the point is.. Members of Parliament (MP) are chosen on their personal merit.
MP's have to follow their oath, a promise to be honest, and take care of the prosperity of the nation.
But, the strange thing is, voting in the Parliament isn't secret.
So, parties learned to monitor what MP's did vote.
Any MP that goes against the party line can get serious problems
in his or her future (political or public) career.
Kind of.. "We monitored you, and if you continue to do so, you will never become governor!"
The second step was to influence the MP's by blackmailing them.
This is done by Party Whips.
Nowadays most parties have a small group of people who rule everything.
You can't call that a democracy.
A party congress is a farce. A kind of theater.
After the Party Whips the establishment invented the Spin Doctors.
Guys who train politicians in telling lies.
In that way democracy is as dead as a door nail.
We can restore democracy by making the voting in parliament secret.
It's as simple as that!
MP's can't be blackmailed by their parties anymore.