A municipality may provide for, maintain, and operate community and social services to preserve and promote the health, recreation, and welfare of the residents of the municipality.