How it works
spawn-protection in server.properties sets a radius around the world spawn point where only operators can break and place blocks. The default is 16. The protected area is a square, and the value is roughly the distance from the spawn block to its edge.
The quirk: spawn protection is only active if at least one operator exists. On a server with an empty ops.json, it does nothing at all.
Changing or disabling it
Set spawn-protection=0 to disable it, or a smaller number to shrink it. Restart the server for the change to apply. Players with operator level 1 or higher bypass it.
Moving the spawn point
Run setworldspawn while standing where you want spawn to be, or give coordinates. Note that players respawn near, not exactly on, the spawn point; the respawn radius game rule controls the scatter. Plugins such as EssentialsX add a /spawn command that teleports players to an exact location.
Better protection for a real spawn
The vanilla feature is blunt: it blocks building, but not opening chests, using doors, PvP or mob griefing. For a proper spawn town, set spawn-protection to 0 and use WorldGuard regions, which control each of those separately and can cover any shape.