それで means like, that's why~
そこでmeans like, therefore,~
There is not much difference.
The above one is like a phrase when you want to explain or say a reason why you do or did something.
The below one can be used when you want to explain or say a methid to figure out some solutions.