A storage device made from sand may overcome the biggest issue in the transition to renewable energy.