If you want to fix a tree you have to plant it. It's pretty obvious that digging up the tree broke it. So fix it by planting it again. That is how plants work.
If you don't plant a tree it goes into shock (しょく). Which, honestly, shouldn't be very shocking to you, since it's a tree.