cydia crashed

I have a iphone 3.0 unlocked (t-mobile) and jailbroken using blackra1n months ago. Not sure when I accidently upgraded to 3.1.2. Unaware of this I went into cydia and downloaded apps. I tried installing openssh put dont see app, so not sure if it worked. after I downloaded winterboard the phone rebooted itself and turned back on. But now I cant go into cydia everytime it acts like it is loading and returns to the springboard. I dont know how to fix this, please help.