In particular, you are not a typical arrangement of particles, and over a long time, most possible transformations of universe's arrangement of particles will not include you. Unless we come up with something unimaginably clever. You never know. But more on this later. Back to history, or maybe cosmology.
Following the laws of particle behavior, the arrangement of particles in the universe went through a series of global transformations. At the macroscopic scale - the scale most interesting to humankind that largely operates inside it - the two main laws that govern the behavior of objects are the electromagnetic force and gravity. Gravity (the force that keeps you bound to the Earth) pushes particles towards each other over long distances with strength proportional to mass; electromagnetic force (the force that comprises literally every single aspect of your day to day life other than not flying off of the Earth) causes both attraction and repulsion at smaller scales, with repulsion spiking in conditions of high density. Over long time and large distances, gravity pulls large quantities of particles together; but when that much matter is gathered densely into one place, electromagnetic repulsion starts to push back, preventing particles from attracting into a single point. That interplay between these forces causes matter to take a form of a huge ball, which is why matter in space is usually shaped like giant balls.
Roughly speaking:
If the amount of matter pulled together this way is small, gravity cannot overpower repulsion enough to form a tangible ball, and matter remains a disjointed cloud.
If the amount is medium (by this I mean it's comparable to Earth), the result is a planet, in which the repulsive electromagnetic forces spike due to density, enough so that they and the attractive gravitational forces calmly counterbalance each other.
If the amount of matter is large (a few times bigger than Jupiter), the repulsive electromagnetic forces start to break down under immense gravity, and other, more exotic and smaller-scale forces enter the picture. These forces result in a process of transformation of mass into massive quantities of free-roaming electromagnetic energy (light, pretty much) by way of nuclear fusion, and that energy bolsters the repulsion of matter while slowly leaking, and as it leaks, more mass is transformed into energy, once again forming an overall balance (though it is an unstable balance, in this case, and when enough mass have transformed into energy and leaked, it eventually transitions into some different state). The result here is a star.
If the amount of matter pulled together by gravity is truly, truly enormous, and no amount of matter-energy conversion can push it towards an equilibrium, gravity succeeds in pulling a bunch of matter into a single point, forming a black hole.
(All of this is way more complicated in practice; notably, a planet formed in this straightforward way would be a gas planet, not something like Earth. The creation of solid-matter planets with a relatively thin atmosphere involves complicated aftereffects of the formation of the star.)
These giant balls shaped by the interplay of gravity and electromagnetism and sometimes fusion then attract to each other via gravity, but over distances between them even gravity is extremely weak. Motion residual from their formation is generally enough to counteract the pull and run circles around each other for a very long time rather than colliding. At larger scales, assemblages of matter orbit different assemblages of matter; at even larger scales, things are drifting apart for poorly understood reasons.
Various permutations and shapes of these arcane and arbitrary processes solely dictated the shape of everything in our universe for, give or take, ten billion years.