Should We Do Good Only for Reward?

How can people be truly ethical if they are just being motivated by God’s punishments and rewards? Is the concern only for reward valid in Islam?