Stocks are held in your Demat account in an electronic format, it does not deal with any cash transaction. You need to login to the trading account linked to the Demat account from which you can process the money withdrawal.