Sometimes when they act like this, it is caused by a failure of the touchpad on the control panel. The buttons can short and the lights and switches...
Have you checked to make sure the dryer is getting 240V? Sometimes one leg of the power to the dryer will fail and if the dryer is only getting 120V...