How can i buy shares in demat account

How to buy shares using an already existing Demat account?,