The incident took place last evening when the container truck while crossing the railway track was hit by Chhapra Mathura Express train enroute to Kasganj, said SP Anil Mishra.
While Amit (28) and Arvind (22) died on the spot, Sudhir (20) died on his way to a hospital, he said.
The collision also damaged a part of train's engine due to which it remained halted for two hours until the engine was replaced, he said.
Police officials went to the spot and convinced the locals to lift the blockade.