There are a few ways to create illustrations in Photoshop, but the primary method for creating vector graphics is using the Pen …

source

A quick tour of the basics of photoshop
How to Mask in Photoshop 2020 - Select and Mask Tutorial