It sounds like you were

It sounds like you were aiming to plant the "three sisters"—corn, beans, and pumpkin or squash. And, from what you describe, it sounds like you did it in reverse. See here for advice on doing this:

We do not recommend removing and transplanting the corn at this point. Corn typically needs to be planted in blocks to pollinate effectively and it is not clear that your stalks are close enough. (The cluster described for the Three Sisters is block, albeit a small one.)

Hard to know what's up with the squash.

Pick the beans that are ready as that will encourage more.