( Firstly these are applied only to bosons not to fermions. )
Quarks are the main fundamentals of quantum field theory they are separated by their following characteristics like
Up, down ,charm ,top, bottom
Every particle has their own respective field, like electrons have electromagnetic field, higgs boson has higgs field and so on and if we provide energy to their respective fields then particles are formed. Just like if you give energy to a electromagnetic field then a ripple forms on the surface of the field which produces a particle called electrons. So technically fields and energy are the building block of everything.
This is how particles are created by providing energy to the field.
I know its very short and not entirely detailed but after few days I am gonna upload a blog following it and describe how masses are created and how matter has mass and my own theory about gravity!