[example: A Bounded Sequence in $L^1$ with No Weakly Convergent Subsequence]
Let $X = L^1([0, 1])$ equipped with the norm $\|f\|_{L^1} = \int_0^1 |f(x)| \, dx$. Define the sequence of functions $u_n: [0, 1] \to \mathbb{R}$ by
\begin{align*}
u_n(x) := n \cdot \mathbb{1}_{[0, 1/n]}(x).
\end{align*}
Each $u_n$ is a "spike" of height $n$ concentrated on the interval $[0, 1/n]$. The sequence is bounded:
\begin{align*}
\|u_n\|_{L^1} = \int_0^1 n \cdot \mathbb{1}_{[0, 1/n]}(x) \, dx = n \cdot \frac{1}{n} = 1 \quad \text{for all } n \in \mathbb{N}.
\end{align*}
Suppose, for contradiction, that a subsequence $u_{n_k} \rightharpoonup u$ converges weakly in $L^1([0, 1])$. By the definition of weak convergence in $L^1$, this means
\begin{align*}
\int_0^1 u_{n_k}(x) g(x) \, dx \to \int_0^1 u(x) g(x) \, dx \quad \text{for every } g \in L^\infty([0, 1]).
\end{align*}
Taking $g = \mathbb{1}_{[a, b]}$ for any interval $[a, b] \subset (0, 1]$, we compute
\begin{align*}
\int_0^1 u_{n_k}(x) \mathbb{1}_{[a, b]}(x) \, dx = n_k \cdot \mathcal{L}^1([0, 1/n_k] \cap [a, b]) = 0
\end{align*}
for all $n_k > 1/a$, since $[0, 1/n_k]$ and $[a, b]$ become disjoint. Therefore $\int_a^b u(x) \, dx = 0$ for every interval $[a, b] \subset (0, 1]$, which forces $u = 0$ a.e. on $(0, 1]$.
But taking $g = \mathbb{1}_{[0, 1]}$ gives
\begin{align*}
\int_0^1 u_{n_k}(x) \, dx = 1 \to \int_0^1 u(x) \, dx = 0,
\end{align*}
a contradiction. Therefore no subsequence of $\{u_n\}$ converges weakly in $L^1([0, 1])$. The mass "concentrates" at the origin and escapes to a Dirac measure, which does not belong to $L^1$.
[/example]