Normally team A would bat first then B, then A again then B. If you follow on it goes A, B, then B again and then A if needed.
So if team A scores a shed load of runs and team B is then all out and still more 200 or more behind team A can enforce the follow on. Which means team B bats again...