Dynamical response function in sodium studied by inelastic x-ray scattering spectroscopy