Control and stabilization of degenerate wave equations