Wrong two hots and a ground. Cable in the wall would have to have 4 wires to get a neutral.
So I hook up the hots and the neutral, install the new
Some appliances can work with out a neutral, some can not. Using the ground as a neutral can be hazardous. The manufacture should have directions in connecting the dryer with 3 wires.