Both PC's (1 and 2) should have the same Default Gateway and DHCP Server IP - most likely 192.168.1.1 (subnet mask 255.255.255.0).
"Most likely" because the default values can and do vary with the router's manufacturer.
DNS Server is configurable as well. That IP may be provided by your ISP but you can also select/change the IP yourself. Many people use Google's 8.8.8.8 or 8.8.4.4 DNS Server IP's.
Because PC 1 is connecting to the internet you do not want to make any changes to it or your router. Focus on PC 2's network adapter settings and align them with PC 1's settings.
Change only one thing at a time.
Again, start with simpler things, e.g.:
1)Ensure that PC 2's network adapter is enabled. Run the network troubleshooter.
2) Connect PC 2 to another router port.
3) Try another known working ethernet cable. (Or some other connection path if working with wall ports, or powerline adapters.)
Then go into the network adapter settings.
You also have the option of reinstalling the network adapter drivers. Best to see what you have now and if some configuration change will get PC 2 back on the internet.