views_query_alter never called
Maybe  reason can be if you use Search API module, in this case hook_search_api_views_query_alter will work instead

link 1
link 2

I have the same problem now and after some search find that when search API module enabled  hook_views_query_alter not worked.