This is a very interesting question and raises some very fundamental points about how the universe works.

If an electron and its antiparticle a positron collide at low energy all that can be produced is a pair of gamma ray photons that carry away the total energy of the collision. It is important that two gamma rays are produced to conserve momentum. these gamma rays are in fact a particle anti particle pair because a photon is its own antiparticle. However if they collide at very high energies a great many different sorts of particle can be created out of absolutely notying other than the two particles and the quantum mechanical vacuum. Performing these collisions at high energies is one of the ways in which subnuclear particles are studied.

This shows clearly that energy is the most fundamental thing and all matter ccan be created from it given the right conditions.

It is true that energy and possibly the structure of space time are the most fundamental things in the universe. Matter and all the forces that we can measure are just a long lived (but not permanent) expression of the action of this energy. Even the structure of space time itself may in fact be also just a long lived expression of energy in action.