Using follow and nofollow links let Google know which links should influence rankings.
A nofollow link does not contribute to rankings. They are a necessary part of SEO — helping to minimise spam and stop people paying for their rankings by buying backlinks.