Without the sun the only source of energy would be starlight. Planets don't _generate_ energy of their own, they only radiate away energy. So without the sun everything will simply freeze to near absolute zero, once it radiates away all heat energy.
Is the heat produced inside a planet, mostly from the radioactive decay of natural isotopes.
Volcanoes are not powered by the Sun. Of course this production will cease when all isotopes will be depleted, but that will take a very long time.