Could be constipated.
Nuke a few peas in the microwave, peel off the outer coating, and feed the goldfish the mushy inside part. This is a natural laxative for them, and should make them poop some more, and clear em out. After that, if it is just gas, and not a sign of swim bladder disease, your fish should swim normally.
HTH
__________________
-Lindsay
Live in the Western MD/West Virginia/DC Metro Area?
Join our very active regional forum
Here
Like the advice someone just gave you? Add to their reputation! Click on the balance icon underneath their username and let them know.