Some people just cannot sleep on flights, but general "good sleep hygeine" can help in most situations esp. when augmented by ambien. Avoid caffeine for several hours, avoid alcohol, have a full meal, empty bladders, and avoid TV/movies. Even though I have good noise cancelling headphones, for sleeping I think that a good pair of earplugs is the best bet.