Every party decides who it represents before you ever see a ballot. This is how.

BYV: Legally, your MP represents everyone in your electorate. In practice, what gets heard depends on what their party has already decided is acceptable.