If Yahoo Mail isn't working for you, make sure that you're using a modern internet browser and have a stable connection.
You can add Yahoo Mail to your iPhone by downloading the official Yahoo Mail app, or by adding your account to the default Mail app.