The new chancellor says she has inherited a depleted economy that will create a “challenge” for Labour.