The next UK general election must be held by January 2025. Here we set out what happens constitutionally before and during a general election, how political parties and the civil service prepare for the election outcome and what it means for government.