Fax machine is used to send as well as receive documents, so there are two parts one is sending part and other is receiving part.
The sending part is just like a computer scanner which scans one line of a document at a time.
Phone line is attached between sending part and the receiving part which transmits the information instantly to a fax machine.
Within few minutes a copy of a document is received to a fax machine.