What’s the difference between sexual orientation and gender identity?

What’s the difference between sexual orientation and gender identity?