Washer repair

My washing machine at first stop dispensing any cold water and would only give hot waTER. aFTER TRYING IT TWICE SMOKE CAME FROM THE BACK AND NOW NO WATER COMEs OUT. iT WILL STILL RUN ON THE SPIN CYLE. Was thinking it"s the water inlet valve. Any suggestions?

Sorry for the caps. Computer is being weird. Thank you

Nothing comes up using the given model number, please check it.
Model Number Locator

Could be A612 it’s pretty old. Series 04
033772TL?

Here are the parts
Replacement parts for MAYTAG A612 WASHER-TOP LOADING | AppliancePartsPros.com

See the following for a manual which may come in handy.
http://appliancedigest.com/index.php?/files/go/081e0c3f3e308b17e2ef6ba62d020495/16000131-maytag-1990-automatic-washer-repair-service-manual

You have to join the site to download the manual but it is free and this is a very good site for manuals and other info for the appliance repair DIYer.

It could be the valve.
You will have to remove it and check it. Since it smoked you should be able to see the damage or smell the smoke residue on the part.

I am assuming you saw smoke at the top back of the unit so I would also check fro a bad wire or timer in that area.