Both of my p20i’s are working but only one of them

Only one of them connects to my phone and the other to my iPad

Could you please help with what I should do

Try to reset your buds and unpair to your device.