Most likely a loose connection. After you replace the terminal connector do a amp draw on the dryer under a load and compare that to the specs.
Since you already have it torn down,check all the wire terminal connectors,including the power cord at the dryer and the power outlet as well as the circuit panel box.