Singularities form by a collapse of a star, where star with high enough mass (above 30 times the sun) would shrink under its own gravity and force until it becomes a single, one dimensional point. When it forms, space and time would be infinite in there. 