Labour lost because in all the years the Tories have made a mess of things, they couldn't make themselves look like a credible alternative.  Corbyn is not a natural leader, and has a very disloyal party.