After uninstalling WooCommerce plugin I removed the table created by it. Now I installed WooCommerce again but it is not recreating WooCommerce pages automatically.
You can recreate the Woocommerce pages by following these steps.
Go to the System Status tab on Woocommerce. Next click on the Tools tab at the top of the page. Now navigate the Install pages link and click on that.
You can recreate the Woocommerce pages by adding the &install_woocommerce_pages=true to the end of the settings link like