Please fix your question, and this belongs in science, not biology. When the ball hits it's maximum height, it's kinetic energy will change to zero, and it will be converted to potential energy.
A lava dome would most likely be composed of a very viscous lava rich in silica like a rhyolite which would cause it to dome upwards and solidify quickly rather than spread out over the surface of the earth like a fissure eruption which more likely would be like a basalt much less viscous and flowing more freely.
Any substance that occupies space and has mass is matter.