Why does the fuel gauge not work on a 1997 Chevy Blazer?

Bad sending unit in the fuel tank.