Where they have there effect on the tissues cells
One way is that Igneous rock could erode and become sediment and deposited and slowly change into sedimentary rock, then get pushed down deep into the crust and changed by heat and pressure into metamorphic rock.
The number molecules inside and outside the cell would be constant. This only happens once the cell is dead.