Q.apricot tree
My tree is about 30 years old. It has bloomed one time in 7 years and bore fruit. This year it got leaves, not full, and 2 weeks ago they all dried up and started to fall. What can I do for this tree? I have another one, healthy about 35 foot away.

Even though you have a tree nearby that is doing well, I would still suggest a soil test.
If the tree has struggled for many years it would likely be an issue with soil conditions.
Pollination is another common reason for lack of blossoms and fruit.
Read the links below to refresh yourself on the care requirements.
https://www.gardeningknowhow.com/edible/fruits/apricots/apricot-tree-not-fruiting.htm
https://www.gardeningknowhow.com/edible/fruits/apricots/apricot-not-blooming.htm