A person infected with measles travelled on a number of flights and trains in Sydney on Sunday, NSW Health has warned.