People should stop comparing the EU to any other national system, because it is inherently an supranational and intergovermental system.
MPs in the house of commons elect the Prime Minister (typically this means the leader of the largest party). Technically it's the Queen appointing them, I believe on advice of the civil service on the basis that they will be able to command a vote of confidence, but in practice it's the MPs themselves.
The Prime Minister then appoints the cabinet, most of whom will be elected MPs by their local constituents (in practice at least half of the seats in the UK are "safe seats", meaning the MP is appointed by local party memebrs)
The Prime Minister also appoints one of the EU commissioners (and the PM's counterparts in the other EU states also appoint one).
The EU parliament elects the president of the commission from a pool suggested by the heads of government. That president then allocates each of the commissioners they've been sent by governments to various roles.
In the EU, voters elect national governments who each appoint a member to the EU Commission. The EU Parliament also gets a say in the election of the Commission President.
Obviously it's a compromise because national governments don't want to give up their power. But it's not as undemocratic as is often claimed.
This is a chicken and egg problem, national politicians can always blame the EU for their problems, and the European political parties are not able to prove their worth because they are being held down by national politics of member states.
One solutions would be a completely seperate system, but that would require some form of federalisation, which is politically and culturally not feasable at the moment.
In the future, when we're setting up even larger multinational organisations (even a world government), EU will be a good example of what not to do.