3 goldfish in a 20 litre tank seems very overcrowded, unless they are tiddlers (less than a couple of inches).
Goldfish pollute the water with their waste very quickly - the 'normal' guideline for goldfish is at least 40 litres tank volume *per fish* when they are grown up!!
Otherwise you will need a good tank filter and a *lot* of water changes (30% every week at a minimum). Don't forget these guys are "swimming in their own loo", so the toxins build up fast - and that causes stress, which then causes the fish to get ill very easily.
As showcatbenga says, you need to test for Ammonia & Nitrite (they tolerate Nitrate quite well, but every fish has a limit!) and make sure the water quality is good.
Always in fish keeping, 90% of problems will be fixed (given enough time) by getting the water quality sorted out. Hopefully your 'goldie' will pull through. Good luck!