LONDON — Britain’s economic recovery still has a pulse — if a weak one.

The country’s recovery gained momentum in the second quarter as all of Britain’s main industries reported faster growth, government statistics released on Thursday showed. But some economists warned that it was too early to say Britain’s malaise was over.

Gross domestic product grew 0.6 percent in the second quarter, compared with the first three months of the year, when the economy grew 0.3 percent, the Office for National Statistics said on Thursday. Growth spanned the service sector, which accounts for about three-quarters of Britain’s economy, and construction, agricultural and production, which includes manufacturing. It was the first time in three years that all those industries grew at once.

“Growth not only accelerated appreciably but is also becoming more broadly based,” said Howard Archer, an economist at IHS Global Insight. But he also said that “significant economic headwinds persist,” meaning that the economy “will likely remain prone to periodic losses of momentum.”