flowering tree losing leaves.
Without more information, we assume, perhaps incorrectly, that the tree you mentioned is a kind of crabapple. The problem you have described is fairly common for some varieties.
Go here to learn about leaf drop and what to do about it:
If we have misidentified the tree, please reply to this message and attach sharp photos.