I really like UG filters for smaller tanks, even though they are very unfashionable these days. I would far, far rather use a UG filter than one of these small internal or HOB filters that one sees being sold with most small tank kits. UGs are very effective if set up well, with good water flow through the substrate. Also, if you are using aeration to power them, then the water is automatically very well aerated.
They are also cheap !
However, sand is not the right substrate, as has been mentioned above. It simply compacts together too much, and the water flow through it will not be sufficient. There are also not sufficient spaces between the grains for lumps of poo etc to be drawn down into the substrate.