What's included in a valve job? Never had this done before so curious about costs and what they actually do?

Thanks