Enamel pearls form when

epithelial rests transform into ameloblast vesicles.

cells of the dental follicle fail to develop

ameloblasts migrate apically down the root.

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