A major energy supplier has collapsed, with the UK's energy regulator stepping in to protect its 15,300 domestic and 8,400 commercial customers.