Hundreds of communities are locked in tight contests, in which traditional party loyalties come second to more immediate concerns about the economy, crumbling infrastructure and the National Health Service.