I commend you on your honesty in admitting there are aspects you don't understand unlike others who take it a personal affront and try to destroy your credibility and reputation in the process.
Elements did not begin in the same state.
The first elements to form before the formation of stars were hydrogen, helium, and trace amounts of lithium and beryllium.
Heavier elements were formed later through mechanisms such as cosmic ray fragmentation, fusion in stellar cores and finally through slow and rapid capture of neutrons.
One of the objectives of the JWST mission is to detect
Population III stars which are earliest stars formed only from primeval hydrogen and helium.