The answer is biosphere, atmosphere and geosphere.
In the plants it exists in the form of macromolecules, so carbon is the part of the biosphere. By burning of wood, carbon is released into the atmosphere in the form of carbon dioxide. After the decomposition of living matter, carbon can be either released into the atmosphere or stored in the soil as the part of geosphere.