Certified GKH Gardening Expert
It could be likely that the tree is not suited for your climate. Once it gets cold, it needs to stay cold in order to keep the tree in dormancy. Otherwise, it will begin to flower, exert all of its stored energy, and fail to flower in the Spring...
Sometimes, if it initiates early flowering, and it gets cold enough, quick enough, it will resume normal schedule.
This article will help you to care for the trees: https://www.gardeningknowhow.com/ornamental/trees/ornamental-cherry/flowering-cherry-tree-care.htm