Using the anthropic principle, we can effectively "determine" that a 3D world is most suitable for life and other objects in the universe.
0-dimensional universe
The universe is just a point, and nothing really exists. It's just a singularity.
1-dimensional universe
The universe's objects are line segments. The space between them are also empty line segments. They can move, but only between the empty segments. They will join together if they touch. They cannot go over or pass each other, only collide. Life cannot exist here. There are no celestial objects either.
2-dimensional universe
Case 1: Celestial bodies are large circles or ellipsoids. Stuff on those bodies are on the circumference of these objects. To pass each other, they must go over each other.
Case 2: There is only one ground. Pretty much Flatland. Objects are 2D and see in 1D if they are alive. But if an organism eats something, the waste must come out the same way it went in, otherwise the organism would be split in two.
Gravity is twice as powerful here.
3-dimensional universe
That's us! We know everything (mostly) about our universe and how life goes.
4-dimensional universe
Gravity is half as powerful here. Objects orbiting other objects will have twice the orbital radius. Most 3D systems will fall apart if transformed into a 4D universe. Living objects will see in 3D, meaning that if there is a ball in a box, then the 4D being can see inside the box and all sides of the box. Nevertheless, life probably can't exist here because gravity is not as strong, meaning that many gravitational systems will be unbound.
I hope this helps. If there is anything wrong with my post, please notify me via a comment.
Note: Most of this information was sourced from Stephen Hawking's A Brief History of Time.