A contractor not affiliated with the city hit a water main that led to flooding on Yale Street, Houston Public Works said Thursday.