Why stock price goes up and down

Is the price going up and down mostly due to supply and demand or investor behavior?