To setup calendars with Google, you'll need to add your Gmail account via Settings > Mail, Contacts, Calendars > Add Account. For more information on how to do so, see the following resource:
Once setup, you'll then have the option to turn on calendar syncing.
For Google Contacts, you'll have to setup a separate CardDav Account. For information on how to do so, see the following resource: