First of all would like to know more about the pain such as the origin, as in how did it start suddenly, did you overstretch? Or are you able to recall a particular mechanism of injury? Without assessing you, Wont be able to tell when can you return to your activity.
Ice is always used in Acute scenarios, i.e, When your pain or injury is fresh, or has occured within the last 72 hours such as an ankle sprain or a muscle strain. Whereas hot on the other hand is used more for chromic scenarios, such as a long standing low back pain. Take care👍
Next Steps
Consult a Physiotherapist