Q.plum trees
My plum tree flowers but the flowers all turn brown and die and there are lumps of resin on the branches, which result in no fruit.
It sounds very much like a canker disease.
Plum Trees are susceptible to many different diseases.
Here is a link with more information.
https://www.gardeningknowhow.com/edible/fruits/plum/plum-tree-diseases.htm
https://www.gardeningknowhow.com/edible/fruits/plum/black-knot-tree-disease.htm
https://www.gardeningknowhow.com/edible/fruits/plum/treating-plum-pocket-disease.htm
https://www.gardeningknowhow.com/edible/fruits/plum/plum-tree-is-bleeding-sap.htm
https://www.gardeningknowhow.com/plant-problems/disease/weeping-amber-in-trees.htm