Go into the input configuration and find which key is mapped to your run button, then hold it while moving left or right until Samus builds up speed.
Once you are at full sprint, press down to Shinespark and launch in the direction you were facing.
If it is not triggering, the usual cause is a run button that is not bound at all, or a tap of the direction key that breaks the charge before you reach full speed. Hold the direction continuously.