The government has made economic growth one of its key priorities.

A Treasury spokesperson said the government was working to boost economic growth through reducing energy bills and major infrastructure investments.

“We are determined to defy the forecasts on growth and create good jobs, so everyone is better off, while also helping us invest in better public services,” the spokesperson said.

Shadow chancellor Sir Mel Stride blamed the Budget for the unexpected contraction, saying it was “a direct result of Labour’s economic mismanagement”.

“For months, Rachel Reeves has misled the British public. She said she wouldn’t raise taxes on working people – she broke that promise again. She insisted there was a black hole in the public finances – but there wasn’t.”

Ruth Gregory, deputy chief UK economist at Capital Economics, said the surprise contraction in the economy was “a further reason to expect the Bank of England to cut interest rates next Thursday.”

“It’s striking that the economy has only grown in one of the past seven months,” she said.

Over the three months to October, production output shrank by 0.5%, largely driven by a 17.7% fall in vehicle manufacturing.

The cyber-attack on Jaguar Land Rover halted production at its plants across the UK for the whole of September, and there was a staged return to factory activity from early October.

The resumption of vehicle manufacturing helped lift production output across the UK for that month, which grew by 1.1%.

However, the ONS noted the rebound in vehicle manufacturing had been small, as it was still well below levels seen in August.

The services sector, which makes up about three-quarters of the economy and includes areas such as professional services and retailing, did not grow at all in the three months to October.