Why does share price increase

Could increased investor confidence or positive earnings drive a price rise?