first martiAn said:
A star is formed when a large amount of gas, mostly hydrogen, starts to collapse in on itself due to its gravitational attraction . As it contracts, the atoms of the gas collide with each other more and more frequently and at greater and greater speeds - the gas heats up.
The problem with your line of thought here is that you're trying to make "force" to be either as fundamental, or more fundamental, than energy. This is a path that will lead you to nowhere.
For example, I can have a value of energy, but I will have no force acting on it. An object in a constant potential energy is one such example. However, I cannot say this the other way around, i.e. I cannot say there is a force but there is no energy. Whenever there is a force acting, there MUST be a non-zero energy gradient.
Secondly, equating "pressure" with "force" is wrong. What is more "fundamental" here is the rate of change of momentum of each molecule of the gas. I can increase the temperature of the gas, but if there isn't any "container" for the molecule to bump into and exert a pressure, there will be no pressure and there is no force/area.
Finally, in classical and quantum mechanics, the Hamiltonian/Lagrangian formulation of the dynamics of a system contains no such thing as "force". There is only energy, momentum, position, etc.. but no force. If we were to teach this method to you from the very beginning instead of Newtonian mechanics, you will never know that there is such a thing as "force". It is not a necessary concept or quantity to describe our world.
Zz.