Three buildings were evacuated after contractors hit a natural gas line, causing a water main break in Gaithersburg.