If you enabled one or more modules, then you will need to run magento setup:upgrade to update the database schema.
php bin/magento module:enable Nwdthemes_Module
php bin/magento setup:upgrade
First line simply adds your module to the app/etc/config.php. Please note that your magento will crash until you run second command.
Second line trigger setup scripts of all Magento modules that needs setup. Current module version is saved in setup_module table ( remember core_resource in Magento 1 ).
By default, magento setup:upgrade clears compiled code and the cache. Typically, you use magento setup:upgrade to update components and each component can require different compiled classes.
magento setup:upgrade --keep-generated
The optional –keep-generated option prevents generated code from being deleted. It should be used only in limited circumstances by experienced system integrators. –keep-generated should never be used in a development environment. Improper use of this optional parameter can cause errors during code execution.