A substance which gives brick red flame and breaks down on heating to give oxygen and a brown gas is

Compounds containing calcium burn with a brick red flame. Hence Calcium nitrate will break down on heating to give a brick red flame and a brown gas which is NO2.

2Ca(NO3)2 2CaO + 4NO2 + O2

1