Energy regulator Ofgem has said it "expects suppliers to do more" to ensure that money held in credit from closed accounts is returned to former customers.
Ofgem said an inquiry into the suppliers had found "an unacceptably large amount of money being retained rather than returned to consumers".
Most of the major suppliers, who are known as the Big Six, have recently pledged to automatically refund surplus money to existing direct debit customers.
Ofgem has said it expects the companies to do all they can to return money to individual consumers and to inform current consumers clearly what to do when closing an account.
Ofgem interim chief executive Andrew Wright said:
When many people are struggling to make ends meet, it is vital that energy companies do the right thing and do all they can to return this money and restore consumer trust.
We want to see decisive action by suppliers, individually and collectively, to address this issue and, wherever possible, to ensure that the balances they currently hold are returned to consumers.
More top news
Auditions for X Factor have been cancelled following the death Simon Cowell's mother.
Andy Murray faces the towering 6ft 10 ins Croat Ivo Karlovic as he looks to book his place in the Wimbledon quarter final.
The National Housing Federation (NHF) has warned that large parts of the countryside in England could become "pensioner pockets".