Rocks which contain fossils are (a) Sedimentary rocks (b) Metamorphic rocks (c) Igneous rocks
Igneous rocks form from molten rock, and rarely have fossils in them. Metamorphic rocks have been put under great pressure, heated, squashed or stretched, and fossils do not usually survive these extreme conditions. Generally it is only sedimentary rocks that contain fossils.