Hi Davood,
When people say 'Did you ever...' it would be followed by 'go' instead of 'be' if asking if the person went there.
Did you ever go to New York?
Yes, I went there twice.
I think that 'Have you ever been' is more common when asking if someone has been to a place, but I have heard people use 'Did you ever..'. I suppose it depends on the person's dialect.
Also, sometimes 'Did you ever...' doesn't mean the same thing as 'Have you ever...' Sometimes 'ever' is just used for emphasis. For example:
Bob has been talking about a business trip that was delayed. His friend, James, wonders if he went or not.
James: "Hey Bob, did you ever go to New York?"
Bob: "Yes, I finally went. I just got back yesterday."
I hope this helps. Have a great day!
Kind Regards,
Cynthia