Question for dryer repair

Hello, I have a maytag washer dryer combo LSE7806ACE. The problemthat I am having is that my dryer in the middle of a load just shuts off. Could you tell me if you think it is a thermostat problem or a heating element or niether of the two. Please help!