How do you set up mail account on the iPhone?

I bought my 1st i phone today.6+. tried setting up mail. i tried but it says user name or password incorrect. but i downloaded gmail app and entered my details. it is working. what should i do?
Try rebooting the iPhone and then try setting up the account again.

How to setup Gmail, Google Calendar, Google Contacts on your iPhone or iPad | iMore

Original thread: https://forums.imore.com/threads/how-do-you-set-up-mail-account-on-the-iphone.305424/