i have around 500 pages in my sitemap.xml and more than 1000 pages but google is indexing only 165 page? How google will index all site pages. Ofcourse i can't get backlinks to all thousands of pages.
Hmm.. Maybe you have too many pages in your sitemap. You don't have to optimize all of your pages, better focus on some important pages. User still can reach your pages through internal link, rite..?
Basically - EVERY page of your site should be unique, at least in regards to META Info. Now think if it is the case with your site...
How old is your site? Google needs some time before it index pages from new sites. Also, to get more of your site's pages indexed, I suggest you build some backlinks for the home page + also build some backlinks for the internal pages.