Newton's third law states that for every action there is an opposite and equal reaction. So as long as both teams pull with the exact same force the flag will stay in the middle and the game will be at a stale-mate.
This will continue until one of the two teams begin to exhaust their energy causing them to not be able to pull with the same force as before. This in term gives the opposing team the upper hand until one of the two win.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.