Cant switch to move mode

I was making a simple character movement with a character controller but one day when I opened unity I could only select objects but not move or rotate them whenever I try to change to move, scale or rotate mode it immediately deselects.

please reply if you need screenshots

can you please show some screenshots?