Despite winning nearly every major battle in the War of 1812, why couldn’t the British regain control of the United States?

Despite winning nearly every major battle in the War of 1812, why couldn’t the British regain control of the United States?