Has she had any emotional trauma lately? Did she have a duck friend and then lost her (to predation, sale, etc.)? Ducks will often pine away with grief. It's also possible she has an obstruction of some sort from eating something she shouldn't have. If you can get her to a vet, that would be...