I twisted my ankle it is swollen and bruised. I can walk in it but it still hurts cld it be broken?

Ankle sprain. Yes it is quite possible to have associated small ( or chip ) fracture with it. An x-ray of the ankle will help exclude a fracture.
Yes. Stop walking on it, elevate it, and get an x-ray. It will improve sooner if you stop walking on it whether or not it's broken, so go somewhere you can get it wrapped and splinted properly after the x-ray. Good luck!