A Cipher is simply any algorithm that can be used to encrypt and/or decrypt information. Ciphers were created so people could exchange information privately, without any third parties being able to intercept it.
Ciphers simply encrypt messages into a ciphertext which can safely be sent and received by the receiver. The receiver will need to use the unique key to decrypt the message, which is next to impossible to decrypt without it.