The eigenfunctions (eigenstates) for the momentum of a particle are given by the plane waves $$\phi(x,t) = \sin(kx - \omega t)$$ If we sum a large number of these waves in a range from $0$ to $k_m$, we get something like this: $$\psi(x, t) = \int_0^{k_m} \sin(kx -\omega t)dk = \frac{-\cos(k_m~x - \omega t) + \cos(\omega t)}{x} .$$
This represents a wave-packet concentrated at $x=0$. The bigger $k_m$ is, the narrower and higher the packet gets.
If we integrate over ALL $k$-values, from $-\infty$ to $+\infty$ we get an extremely narrow and infinitly high pattern when we plot it, and we refer to it by the delta-function $\delta(x)$. This detla-function is a position Eigenstate.
But why when we integrate $\delta(x)$ for all $x$ values, we don't get the momentum Eigenstates back? Insted we get $$\int_{-\infty}^{+\infty}\delta(x)dx = 1$$ and not a sine wave. What should I do to get back the momentum eingenstate?