Andy Burnham set to become UK prime minister but faces challenges including the cost of living crisis and two wars.