Hi there RUFKM,
Thank you for posting to Apple Support Communities.
We understand you're having an issue with playing back music from your AirPods.
Make sure your iPhone is up-to-date with the latest iOS. Before updating, we recommend backing up your iPhone first. These articles can be of help. When you back up, you can back up using a Mac or PC rather than iCloud if you choose.
How to back up your iPhone, iPad, and iPod touch
Update iOS on iPhone
Then reset your AirPods to pair again: How to reset your AirPods and AirPods Pro - Apple Support
That should help. If you're still having an issue, we recommend getting ahold of Apple Support: Get Support
Take care.