A five-year-old girl is in hospital with serious injuries after she was hit by a car while reportedly crossing the road near a train station.