Beware of Energy Contracts

What to do when a salesman rings your doorbell and wants to sell you an energy or gas contract or wants to change your hot water tank. And what to do if you have already signed a contract.