A ghost is a spirit of the living dead. They Sometimes visit the living.
A spirit is most likely to become a ghost when it experiences sudden death. This can cause confusion, and the spirit will stay back in the form of a ghost.
A ghost will sometimes come bact to haunt their killer. The ghost then would be a poltergeist ghost, and try to harm people.