Pour hot water into the washer drum and close the door, wait 1 to 2 hours, then press Power, choose Spin for a spin-only cycle, and press Start/Pause to make sure the water drains.
The washer can fail to drain if the drain pump filter becomes clogged. LG recommends cleaning the drain filter periodically to help prevent clogging from foreign objects.
Before you start - Turn off the washer and unplug the power cord. - Be careful: if there is water in the drum, opening the drain filter can cause water to overflow. - Use a bucket if the drum is not completely drained before you open the drain filter. - Do not use the washer without the drain filter, and do not use it with the drain filter assembled incorrectly. This can cause leaks or malfunction.
LG WM4000HBA Owner's Manual, extracted pages 40-41
If the washer will not drain or spin because the water inlet hoses or drain hose are frozen, thaw the frozen parts first and then try draining and spinning again.
If the water inlet hoses are frozen
LG WM4000HBA Owner's Manual, extracted page 42
Source trail
This answer is only published when it has a reviewed answer status and a source citation back to the manual text.