Thank you for using Just Answer.
This sounds like it might be a dryer. Is this an dryer?
If it is a dryer, this happens when the rollers that the drum spins on go bad. They usually give a warning sign before it gets to this condition.
If it is a washer please let us know.
Please let us know what the model number is.
Repairing this will require you to disassemble the washer.
Go to: http://www.repairclinic.com/0100_22.asp to see how it comes apart.
I would venture to say that you will find the struts are broken or unattached at this point.
Unfortunately, depending on what other damage was done you will be replacing other items as well to bring the unit back. Do not use the washer any further if you wish to repair as you will be doing much more damage each time you use it.