If you just turned up at a strangers house in a bag and got put in a glass box how would you feel lol maybe abit scared or confused? Im sure they are fine, it may take a couple of weeks for them to settle in it certainly doesnt sound like they are sick it sound like normal axie behaviour to me! are you new to axolotls? if you havnt already you should read all the axolotl info on this site that you can as there is alot of valuable information!
Just to get you started if you havnt read up, do not use gravel or stones under 2in, sand is best! and for 2 axies your tank should be 3ft long minimum if thats all in check the rest is just day to day or routine stuff like partial water changes, feeding, spot cleaning, cleaning filter etc. any questions please ask, if you follow the advice from all the lovely people on here you wont put a foot wrong!
Take it easy!
Ed