If you want to switch from Spotify to Apple Music, you can use a third-party app to transfer your playlists.
To make a playlist on Apple Music, you need to head to your Music app's "Library" section. There, you can add songs from Apple Music or your device.