I also have gone through 5g not working on iphone phase. So, by finding some basic solutions, i was able to fix the problem. You can also try this steps though, if you are facing the same issue. Steps are given below:
- Make sure your data plan should be on 5G
- You can try to restart your smartphone.