Indexing a website is where google's search engine bot crawls your website and lists your websites articles and website pages in it's search engine listings.
Ranking is where your website will show up in search results if your content is relevant to what the google searcher is searching for.