Original: A signal is a mechanical or electrical device erected beside a railway line to pass information relating to the state of the line ahead to train drivers/engineers.
Simplified: A railway signal or just signal is a mechanical or electrical machine that gives train drivers or engineers information about the state of the line ahead.