I understand the notion of a line bundle $L \to X$ where $X$ is the base. Locally at some $U \subset X$ we have that $L = U \times \mathbb{C}$ (if we work over the complex numbers). Over the projective space it is clear that at every point we have an additional structure, that of a line bundle, where each point of $\mathbb{P}(X)$ has as a fiber the line that it represents.
On the other hand I also understand the notion of the structure sheaf $\mathcal{O}_X$ and Serre's twisting sheaf $\mathcal{O}_X(d)$ in terms of regular functions over $U$ and in terms of rational functions of degree $d$ over $U$ respectively.
What I struggle to understand is how to understand the connection between the sections of the line bundle (for $\mathbb{P}^1$ what are those section?) with the sections of sheaves. In specific how are polynomials of degree $d$ of $\mathcal{O}(d)$ related to the line over a point of the projective space, say $\mathbb{P}^1$?