sometimes knocking on engine and overheating light indicator appear on dashboard on 1996 Chevrolet Caprice

sometimes when I tried to accelerate high speed, knocking on engine comes and when i'm parked for almost 30 minutes while engine still running, the water coolant light indicator appear on the dashboard. it means the engine is overheating.

Asked by for the 1996 Chevrolet Caprice