Quantum spin systems, probabilistic representations and phase transitions