Why did the British army set fire to the White House and the Capitol

For how many days was the US White House in British possession, why was there a war between the two countries?

The White House, besides being the residence of the American President, is also a symbol…