Even if all the cells have the same DNA they biochemical function are different, that's because differents sets of genes must be turned on and off in each cell type by the action of enzymes and other molecules. Each cell have the same 20,000 or so genes but they are biochemically selected by the action of molecules as hormones and chemical signaling. Therefore, different cells use different parts of the DNA code as directions.