Have you checked the troubleshooting section of your manual? Usually it will describe the "mess" and pinpoint the cause.
Are you using recipes specifically for bread machines, or are you trying to adapt your usual hand-made bread recipe to your machine?