it says that the transcation is done, but I can't see it on my Electrum. Also it says (not connected)
Try connecting manually to some random server. Click on the red dot in the bottom-right corner, choose 'Server' tab. Untick 'Select server automatically' and select a random server. If it still doesn't work then take a look at your firewall settings.
and it works by doing this. and sometimes it doesnt work. basically there are some programmatic issues also.