The wavefunction of a free particle is just
$$\psi = Ae^{i(kx-\omega t)}$$
and when you plug this into the Schrodinger equation you get the dispersion relation
$$E = \frac{\hbar^2 k^2}{2m}$$
However, using the kinetic energy operator to get the expected value for the kinetic energy leads to a divergent integral
$$\hat{T} = \frac{-\hbar^2}{2m} \frac{\partial^2}{\partial x^2}$$ $$\left< T \right> = \int_{-\infty}^{\infty}\psi^*\hat{T}\psi dx$$ $$\left< T \right> = \frac{A^2\hbar^2k^2}{2m} \cdot \int_{-\infty}^{\infty} dx$$
Why doesn't this approach work?