Imagine getting in a spaceship and setting off in a direction, close to the speed of light- if you travelled for long enough you’d arrive back where you started. Like someone walking on the surface of the earth.
Any current cosmologists can correct me, but I believe the consensus is that the shape of the universe is a hyper-spheroid, I.e a 4D sphere.