When uninstalling Avast, please also use their specific removal tool to remove all possible leftovers, see: https://www.avast.com/uninstall-utility
After rebooting, Windows Defender should be automatically enabled.
How to Use the Built-in Windows Defender Antivirus on Windows 10