Mostly the Bluetooth pin can be 0000 or 1234.
Go to the iPhone Settings menu > tap on Bluetooth.If your iPhone or your Bluetooth device is having an issue, you should delete the Bluetooth pairing between both the devices and create a new pairing. Similarly, if you use any Bluetooth-enabled device with your iPhone, make sure to turn it off and restart it.Wait for around 30 seconds and long-press the Power/Side button until the Apple logo appears.Now, slide the bar to turn off your iPhone.