it depends on the region where you bought your device.
In Asia, there is a model of the Galaxy Fold 5g but unfortunately, it is not available here in North America but the NA version has the Esim functionality which you can enable thru your carrier if they support it
These are the process to get your Esim Function activated on the major carrier in the US
hopefully, this will help with your problem
Be sure to click " ✔ Accept as Solution" When you find an answer that works for you