The definition says:
When SET ANSI_NULLS is ON, a SELECT statement that uses WHERE column_name = NULL returns zero rows even if there are null values
SET ANSI_NULLS ON
IT Returns all values including null values in the table
SET ANSI_NULLS off
it Ends when columns contains null values