To download music onto your iPhone, you can use iTunes and Apple Music, or a music streaming app like Apple Music or Spotify.
You can get library books on your Kindle through Amazon's partnership with OverDrive using a library card, Wi-Fi connection, ...