If the government wins, the consequence is simple: Mrs May continues in office.
But, if she loses, all bets are off. The government would fall and there would be a period of 14 days in which a new government can be formed. There are no rigid rules of what must happen during this fortnight period.