How do I set and use the passcode on Phone (2a)?

Go to Settings > Security & privacy > Device lock > Screen lock to choose your preferred unlocking method.

Note: you'll need to set a pattern / PIN first to use fingerprint or Face unlock.