Foliated rocks form bands of minerals that are lined up due to being subjected to heat and pressure during metamorphism, while nonfoliated rocks do not have aligned bands as they were not exposed to the same conditions. Phyllite is an example of a foliated rock where microscopic bands are lined up, and marble is an example of a nonfoliated rock with unaligned mineral crystals that was originally limestone.