Answer:
a) conservation of the angular momentum
b) As a consequence of the interaction between particles.
Step-by-step explanation:
A star is formed in a molecular cloud of gas and dust, mainly composed of hydrogen and helium. The Nebular Theory establishes, for the formation of the solar system, that the cloud starts to collapse under its own gravity when it receives a shock wave from a near event, for example, a supernova explosion. That results in the cloud breaking in small pieces, and those pieces constitute a possible future star.
Then it begins to accrete and rotate as a consequence of the angular momentum. In the center of that disk when it reaches the necessary temperature and pressure a protostar will born.
However, as the solar nebular condenses in the center due to its own gravity, the density increases, allowing more collisions between the particles that are in the nebula (atoms, free protons, etc), so the pressure rises and the temperature increases.