If you want help, you're going to have to give some detail about what "not working" means.
The RX 9000 series is very new, so it's likely that at least one of these components in the linux distros you've tried was not new enough to support that GPU:
- The amdgpu driver (part of the kernel).
- The GPU firmware (package names vary; probably linux-firmware package on Ubuntu).
- Mesa.
I suggest asking other RX 90xx users what linux distro/release they have found to support such new hardware out of the box, and trying one of those. Or if you know what you're doing, grab a tarball of new firmware and install it manually.