The link between integrability, level crossings and exact solution in quantum models