What is this row of sandy material in my wall?
Classic, typical termite tunnel. Brush and scrape it away and if you don't see live termites inside, then you don't have to do anything. Follow the tunnel up from the earth and down to see if there is any damage to drywall or structural members. Be careful in probing that you don't damage a water pipe, a drain pipe, or an electrical cable.