Employee was working on a section fan that was just unloaded at the end of the track. A Trip of cars was being moved when it struck a motor and dolly at the end of the track, causing the dolly to come off track and hit fan. The fan moved sideways, causing the fan to pinch miner between coal rib and fan.