The rules on this have changed since the Fixed Term Parliaments Act of 2011. If a sitting government loses a vote of confidence it then has 14 days to try to form a new government (such as a coalition). There must then be a second vote of confidence. If this is again lost, Parliament must be dissolved and a new general election called.
Just so. I read up on it from wikipedia, but it is a bit convoluted.
CC