I took a really hot bath that s how I like them and my sides into my back started to ache and feel cramped really bad so I got out all the sudden I felt over whelmed my chest got tight short of breath and my heart was pounding hard was that a panic attack
It could be many things.  First possibility is of renal stone.  The pain you described is typical of that.  Other chances are acute muscle spasm.  Third chance is acute panic reaction.  Since it was first episode, so you can ignore it.  Never use such warm water as it can be dangerous for doing too.  If again it happens show to a physician, and get investigation like ultrasound done.