Master Track's Train by Allan Ahlberg
Master Track is adopted as a baby when he is found by Mr and Mrs Track in a handbag on a railway station. Little do they realise that he's going to grow up to be a hero and rescue a train that's been stolen by Mr Creep the Crook and his family.