Gloria. So, as well as dishes not drying, you are telling us that the machine is not actually washing the dishes in the first place.
The one thing you don't tell us is the make and model of the machine.
May one suggest your first port of call is to do a Google search for " 'Make' 'Model' not drying " and maybe " 'Make' 'Model' not heating" and see if other people have had similar problems and, if so, how they have solved it.
If that fails, come back and post here with full information.
Anon, November 2016