If you fail the driving test three times:

If you fail the driving test three times, no further tests will be allowed without written authorization from the Department of Revenue. The examiner will give you a form that you must send to the department. After you send the form to the department, you will receive a letter from the department requiring additional behind-the-wheel driver training.
DMV Writen Test