Formation for a team is usually chosen by the head coach (or manager, depending on the club or country). The coach decides the formation based on factors such as:
While assistant coaches, analysts, and even experienced players might give advice, the final call always belongs to the head coach of the team.