Heating Element

I have a Whirlpool du3003xl that during the all wash and rinse cycles the heating element does not come on to maintian the wather tempature. The heating element does work during the dry cycle. Why does it not heat the water during wash cycle? Is there a fix?