Hi ashwin166
Welcome to the Apple (user-to-user) Community.
Apple support have articles online that may help guide you.
We do not know which iOS version is installed on your iPhone XR.
Eg: You may need to update to the latest version iOS 16.2
How to update to iOS 16 or iPadOS 16 - Official Apple Support
Re: facing issue with my iPhone’s wifi
if your iPhone is not working right:
Restart your iPhone - Apple Support
How to Connect to Wi-Fi on your iPhone, iPad, or iPod touch - Apple Support
How to: Connect iPhone to the internet – Apple Support
Recommended settings for Wi-Fi routers and access points - Apple Support
If needed:
How to: Make calls using Wi-Fi on iPhone – Apple Support
How to: Use captive Wi-Fi networks on your iPhone or iPad - Apple Support
Trouble-shooting:
If it wasn't their customer helpline that you already tried:
See if your wi-fi provider can offer a solution.
Else:
If you see No Service, Searching, or SOS on your iPhone or iPad - Apple Support
What to do: If your iPhone or iPad won't connect to a Wi-Fi network - Apple Support
__________________________________________________________________________
Re:" facing issue with my iPhone’s Bluetooth"
How to: Set up and use Bluetooth accessories on iPhone – Apple Support
or for a non-Apple accessory:
Pair a third-party Bluetooth accessory with your iPhone or iPad - Apple Support
How to: Use Bluetooth and Wi-Fi in Control Center - Apple Support
and
What to do:
If you can't connect a Bluetooth accessory to your iPhone, iPad, or iPod touch - Apple Support
__________________________________________________________________________________
If nothing above has helped resolve the issues:
You might want to try:
How to: Resolve Wi-Fi and Bluetooth issues caused by wireless interference - Apple Support
and,
If needed:
You might want to reach out to the iPhone Support Team:
There is a "Get Support" link (or a support app, if you wish to download it) at the bottom of their website:
iPhone - Official Apple Support
All the best :-)