How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0

It’s all explained in this official MS knowledge base article: https://support.microsoft.com/kb/934838/en-us