Is it the wires on the timer that have come off?
Ok what ive done is uploaded the wiring diagram. Theres 2 versions it depends on the serial number but it shows which is which.
Once you have the diagram you should be able to work it out from there.
Click here for the diagram
How did you get on with the dryer?
As the question is still open. If its sorted if you could rate the answer that would be great.