Enamel pearls form when

cells of the epithelial root sheath do not migrate away from the dentin.

ameloblasts migrate apically down the root.

cells of the dental follicle fail to develop.

epithelial rests transform into ameloblast vesicles.