How to invest in demat account

What are the best ways to invest through a demat account?,