A roofing company has been fined after a worker fell three metres from a roof.