Roads have been closed and residents evacuated from their homes in a Nottinghamshire town after a gas main burst.