Generally speaking if the Host has Internet/Network Connectivity then a Guest using NAT should just work however when it doesn't, just saying it doesn't and not providing any substantive technical data to analyze makes it difficult to provide solutions based on the facts.
How, explicitly and specifically, is the Host connected to the Internet/Network?
Ethernet, WiFi, with/without VPN, connected to a Router, Switch or directly to an ISP Gateway Device, etc.?
Is the Network Adapter in the Guest connected in its Settings and within the Guest OS?
How are the Network Adapters configured?...
From Windows in a Command Prompt use the following command...
ipconfig /all > host_ipconfig.txt
Substitute guest_ for host_ as applicable.
From Linux in a Terminal use the following command...
ifconfig -a > guest_ipconfig.txt
Substitute host_ for guest_ as applicable.
Archive (compress) the *_ipconfig.txt files along with the .vmx configuration file and vmware*.log files for the Virtual Machine found in the Folder that contains the files that comprise the Virtual Machine and attach the .zip file to a reply post.