What’s happening to my cherry tree?

My cherry tree seems to have a problem. It made flowers as normal, but now a lot of it is looking dead, while only some spots still have leaves on it. What could be happening to it?