Can you flip White Ninja to destroy the Medusa Worm if it was flipped to destroy your Sphinx Teila in Yu-Gi-Oh?

No.

As long as the monster is in Defense position, White Ninja will destroy the target monster. So if Medusa worm was flipped face-down again by its effect, then yes, but if it is still in attack position, then no.