You'll go back to the stage that you failed. If you fail stage 3, you'll go back to "resit" stage 3 and then progress to stage 4 if you pass.
Pass rate for re-applicants is very high - somebody mentioned a 95% pass rate for those reapplying simply because they have the areas that went wrong as feedback so in most cases, it's simple to correct it.