Toy train set (wood).
Cars connect magnetically.
One engine is heavier than the others and has a 3-position switch. This is because it contains a small motor and AAA battery (not included). The battery compartment is accessed by removing a screw that is inside the smokestack. The switch has forward, backward, and off positions. When not switched off, the battery also powers a small headlight. The motor in this engine no longer works, and imposes significant drag on the wheels, so this engine should probably not be counted as a meaningful part of the set. In the pics, this engine leads the second train from the bottom (with the big smokestack). I found a similar motorized engine (new) at https://hiawathahobbies.com/products/brio-battery-powered-engine-brio33595?srsltid=AYCX9vLWoElUhiQs25UANdvtAKDJDMKK98roObKZOX2SUXOkXeJOmM16qfY for $20 as of 11/30/26. The wheels on the other two engines (not motorized) turn freely. From the facts that this collection contains 3 engines and multiple copies of other pieces, I am guessing that this is a combination of pieces from 3 or more sets. The small blue car (at right side, middle), train whistle (bottom center) and small colored blocks are probably not parts of any of the original Brio sets, but are included free to the lucky buyer.
EDUCATIONAL: Cars have magnetic north and south ends, so they have definite forward and backward orientation if you need them to stick together.