Huh that is very easy to understand. There were two main reasons:
1. Labour had left the government essentially bankrupt, literally leaving the coalition a note that said "there's no money anywhere" iirc. The new government had come in and discovered the finances of the state had been utterly ruined. The numbers were stark and voters had accepted the argument that budget cutbacks were necessary to try and right the ship.
Labour had sort of accepted that this situation was true, but failed to take it seriously. Miliband supposedly had a minor meltdown after he tried to give a long speech without notes, and then realized only afterwards that he'd forgotten the entire section about the deficit. That was the number one issue in British politics at the time!
2. The EU had been building as a bigger and bigger problem over time. Voters were increasingly upset that their concerns on major policy areas like immigration were being systematically ignored by all the major parties, except for the eurosceptic wing of the Tories. Neither Labour nor the mainline Tories nor the Lib Dems wanted to tackle this problem. UKIP came along and started hoovering up votes from both left and right by promising a referendum on the EU. Cameron saw what was happening and decided he could end UKIP, win the election and also crush the eurosceptics by promising an EU referendum he was convinced he could win. That caused a whole lot of voters to abandon UKIP and vote Tory in the correct belief that Cameron would honor his promise. The rest is history.