Carmina:After I gave it water, I found lots of beetles (black and orange) on the plant!.
It sounds like they might be squash bugs. I found a site with pictures and an explanation of what they are and how to control them:
http://www.vegedge.umn.edu/vegpest/cucs/squabug.htm
One thing they don't mention is that next year, you need to till the garden area several times, spaced out and that will help kill the ones overwintering. Clean up all debris as soon as the harvest is over, then till late in the fall, then again whenever the ground can be worked. Turning over the soil, leaves and any debris will expose them to cold weather which will kill them.