A man and a child have sustained life-threatening injuries in a collision in Pickering, police say.