Can I share Ethernet internet connection through Thunderbolt cable?
You need to enable the DHCP server service included in macOS. Do this on the side that acts like a router (sharing side).

DHCP is what gives an IP address, DNS servers to user etc. to connected devices.