Make sure Internet Sharing is enabled in the Sharing options in System Preferences. Confirm that the correct source and network for the shared connection are selected. Sometimes a reboot can solve many problems, restart the macOS device and router, and then try sharing the internet again.