A vote of no confidence would trigger a general election. What happens then is unpredictable.
One thing is predictable, imho. If Theresa May insists on heading the Tories in the election, Corbin the kitty-cat Jooo! hater will be the next PM. If she realizes she’s hopelessly bungled Brexit and graciously steps aside for someone else, the Government might stay Tory.