What is the purpose of the 3rd on-screen button on a button-less phone?
That's the "Recent Apps" button. It's alternative of long-press physical home button.

If you tap this, a scrollable screen appears containing thumbnails of suspended or closed recent apps. You can tap thumbnails to switch to apps or swipe it to discard.