Self-contained valve which opens to admit gas to a chamber and automatically closes to prevent the gas from escaping