dishwasher not workin

At first the heat light and the clean light were barely lit or not on at all when running now the dishwasher will not work at all. what is the problem