What is sensex and how does it work?

what is how it work, what is stocks how it helps the company and to the traders what is different between stock and debentures Please help me……………