Nearly every civilization known has had a stick and ball game of some kind. The ancient Greeks and Romans had several. But exactly how those games relate to the modern game is unknown.
A number of early folk games in England had characteristics that can be seen in modern baseball (as well as in cricket and rounders). Many of these early games involved a ball that was thrown at a target while an opposing player defended the target by attempting to hit the ball away. If the batter successfully hit the ball, he could attempt to score points by running between bases while fielders would attempt to catch or retrieve the ball and put the runner out in some way.
Since they were folk games, the early games had no 'official' rules, and they tended to change over time. To the extent that there were rules, they were generally simple and were not written down. There were many local variations, and varied names.
Many of the early games were not well documented, first, because they were generally peasant games (and perhaps children's games, as well); and second, because they were often discouraged, and sometimes even prohibited, either by the church or by the state, or both.
Aside from obvious differences in terminology, the games differed in the equipment used (ball, bat, club, target, etc., which were usually just whatever was available), the way in which the ball is thrown, the method of scoring, the method of making outs, the layout of the field and the number of players involved.