Generalization of Beck's theorem
If you are asking if the same statement holds true or not in higher dimensions, it does. Just project all the points to a random 2-dimensional plane.
Another natural generalization is to consider hyperplanes instead of lines. Here, you have Beck's &quot;other&quot; theorem:

Theorem: For any $d \geq 2$, there are constants $\beta_d, \gamma_d \in (0,1/2]$ such that for any set $P$ of $n$ points in $\mathbb{R}^d$, at least one of the following holds:

a hyperplane contains at least $\beta_d n$ points of $P$
the $d$-tuples of $P$ span at least $\gamma_d n^d$ distinct hyperplanes.


Here, a hyperplane is a $(d-1)$-dimensional flat. For $d=2$, this is essentially what you stated. The restriction that $\beta_d \leq 1/2$ is from the example of having two skew lines in $\mathbb{R}^3$ containing $n/2$ points each, where the number of spanned planes is $n$. For more, see: http://www.cs.elte.hu/~elekes/Abstracts/elest.ps