Open the iPhone 14's Settings, tap the user's avatar, and find the iCloud option to turn off.
After turning it off, plug the Lightning to 3.5mm headphone jack into the iPhone 14 charging port to connect the wired headphones to play music.