Role of phonons in superconductivity