After your new supplier has been in touch and you have sent across your meter reads, your old supplier will be in a position to issue you a final bill. Once this final bill is settled, any remaining credit should be transferred automatically back into your bank account.
If you have a prepayment meter, use up your existing credit before using the key or card from your new supplier.