Phases of Euclidean wormholes in JT gravity