Whirlpool Oven not working

Oven would cook for awhile then turn off, stove would work just fine, now neither work. I can hear the "clicks" when turn each on but nothing after a few seconds. Is it a total loss or what parts need to be replaced? thank you