Phase transition to the spontaneous coherent state