Hi Rahul,
Welcome to traderji!. Well the simplest explanation and the basic function of a broker is to act like a middleman, they connect the customer to the stock exchange. A stock exchange is like a market which is regulated, where people can buy and sell (trade) assets through a broker. There are many other functions of a broker but this is the most basic.