Laptop DC jack issues

Symptoms of a broken power jack:
The laptop only runs when you keep the power cord in a certain direction.
The laptop only runs on battery power.
The laptop will not charge the battery.
The laptop switches from AC power to battery power intermittently.
The unit suddenly shuts off
Sparks come out of the back of the laptop.