An exact replacement will be hard to find. However, you may be able to find something that will replace it, even if it looks different.
The primary winding is the lower winding, the one nearer to the fixing holes. There seems to be a thermal fuse in that winding, which is probably all that has gone wrong. Transformers don't wear out. They generally only fail if they overheat, and that one hasn't been overheated, because it doesn't look burned. Do you know what caused it to fail?
It seems that there are a total of 6 wires connected to the secondary. That makes me think that the output is no just one or two 24 V windings, or a 24 V winding with a centre connection, so 12 - 0 - 12. I think that there may be other output voltages. If you do replace the transformer, it may be possible to replace it with more than one transformer, one for the 24 V, and one for the other voltages.
Can you find where the wires go to?