The dry wood is a store of chemical energy. As it burns in the  fireplace, chemical energy is released and converted to thermal energy  (heat) and light energy. Notice that the wood now turns into ashes (a new substance)